-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support stack collapse for multi-event perf.data files
Consider the perf.data file resulting from the following command: perf record -e cycles,instructions,cache-misses Creating a flamegraph for such a file is currently impossible. Or, well, it's possible but the resulting file is meaningless and misleading, as it will aggregate all samples for the different event types. This patch adds `--event-filter <event-type>` to create meaningful flamegraphs from multi-event perf.data files. We can use it like this: perf script | stackcollapse-perf --event-filter cycles By default, only the samples for the first encountered event type will be used.
- Loading branch information
Showing
1 changed file
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters