Skip to content

Commit

Permalink
Add documentation for stackcollapse-perf --stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Corona committed Sep 21, 2022
1 parent 309075d commit 9d8720d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,18 @@ Take a look at the demo directory for an example:

palette-example-working.svg
palette-example-broken.svg

Streaming mode
==============

`stackcollapse-perf.pl` provides a streaming mode. This mode output the
stack sample lines in a streaming fashion. This can be used to efficiently
subsample from a large capture:

~~~sh
perf script |
./stackcollapse-perf.pl --stream |
shuf -n 50000 | # Take 50000 random stack samples
./stackcollapse-sum.pl | # Merge identical stack samples
./flamegraph.pl
~~~

0 comments on commit 9d8720d

Please sign in to comment.