WIP: don't report subprocess names in SVG output #504
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'd like some way of suppressing subprocess info in the flamegraph/SVG output. This pull-request doesn't expose this option to the user, but seems to do the right thing when I run it.
The motivation is when using the
multiprocessing
module (e.g. the code below) and hence I don't really care which process the code is running inside, just that it's not in the main one probably. I.e. when running the official version I getn
processes that contain basically the same information and hence it seems to make sense to combine them into a single stack. This transformation obviously doesn't make sense if the user is doing different things in each process, but for multiprocessing workloads this cleans up the output a lot.I think this functionality should be exposed on the command-line somewhere, but wasn't sure how to do that nicely so left that out for the time being.