Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stackcollapse perf streaming #286

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

randomstuff
Copy link

@randomstuff randomstuff commented Jul 5, 2022

This may be used to sample from a larger set of data:

perf script |
./stackcollapse-perf.pl --stream |
shuf -n 50000 |                              # Take 50000 random lines/samples
./stackcollapse-sum.pl |
./flamegraph.pl

Comment on lines 116 to 117
--event-filter=EVENT # event name filter\n
--streaming # stream the stacks without summing them\n

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--event-filter=EVENT # event name filter\n
--streaming # stream the stacks without summing them\n
--event-filter=EVENT # event name filter
--streaming # stream the stacks without summing them\n

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks.

@brendangregg
Copy link
Owner

Ok, but can you please add docs to README.md under the Options section to include that one-liner? People won't know how to use this option without those docs.

@randomstuff
Copy link
Author

I've added some documentation in the README.

@randomstuff
Copy link
Author

Fixed conflicts with #289. Taking random samples with shuf does not make as much sense when the samples do not have the same weight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants