benfred / py-spy

Sampling profiler for Python programs
MIT License
12.14k stars 400 forks source link

add json serialization for subprocesses #602

Open JRoper18 opened 11 months ago

JRoper18 commented 11 months ago

Specifying both the json and subprocess flags will only print out the dump of the root process and will ignore subprocesses.

I believe this fixes the issue. I'm not a rust native -- I'd be happy to fix any smells I created.

Closes #601

hunshcn commented 1 month ago

Could you rebase it?

Although the merge seems to be blocked, it helps everyone to use it directly (we can use ci's artifac)

hunshcn commented 1 month ago

also ping @benfred . Can this PR land?