Skip to content

vmiura/perf-vis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

perf-vis: Visualize profiles as sunburst diagrams.

View demo at http://vmiura.github.io/perf-vis/demo.html

Example

The current version is configured to color Chromium code.

  1. 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
  1. 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

Useful features

Navigate stacks

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.

Example

The stack view shows the currently selected stack.

Example

Search for methods. Merge call sites.

The All methods is a bottom-up view of all methods reachable in the current stack.

Example

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.

Linkable URLs.

Send colleagues deep links to your profile's stack view. Example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages