View demo at http://vmiura.github.io/perf-vis/demo.html
The current version is configured to color Chromium code.
- Capture & fold stacks using FlameGraph tools ===============================================
perf-vis is compatible with stacks collected with FlameGraph tools. Get them at https://github.com/brendangregg/FlameGraph/
Usage example:
For instruments:
$ ./stackcollapse-instruments.pl out.txt > out.folded
For perf_events:
$ ./stackcollapse-perf.pl out.perf > out.folded
For DTrace:
$ ./stackcollapse.pl out.kern_stacks > out.kern_folded
- Generate visualization with perf_vis_stacks.py =================================================
Use perf_vis_stacks.py to render a HTML file.
$ ./perf_vis_stacks.py out.folded -o out.html
Or by default the output path will be out.stacks_todaysdate.html
Drill into profile stacks by clicking on the graph, or by clicking links in the Callee table.
To return to a prior stack, use your browser's back button, or click in the center of the viualization.
Hide uninteresting methods.
The stack view shows the currently selected stack.
The All methods is a bottom-up view of all methods reachable in the current stack.
Clicking a method with multiple call sites produces a merged view of the method from all callers. This is very useful for analyzing performance of methods called in many places, or via recursive code.
Send colleagues deep links to your profile's stack view. Example