brendangregg / FlameGraph

Stack trace visualizer
http://www.brendangregg.com/flamegraphs.html
17.08k stars 1.95k forks source link

perf overwhelms stack trace #103

Open WallStProg opened 7 years ago

WallStProg commented 7 years ago

First off -- many thanks, and especially for the work on getting combined Java/C++ stack traces. That's a big win for me, as I work a lot with C++ code hosted in a Java-based FIX engine.

The issue I'm running into is that the flame graph ends up with a single huge spike which resolves to native_write_msr_safe inside perf code -- and that completely throws off the scaling for the rest of the graph.

I tried looking for a way to exclude certain symbols from the graph, but didn't see anything. Any suggestions would be most welcome.

WallStProg commented 7 years ago

I turns out I have several of these, although one is particularly tall (and skinny -- almost didn't see it).

TIA!

WallStProg commented 7 years ago

A couple of things:

perf script | grep -v '[[kernel.kallsyms]] ' | stackcollapse-perf.pl | flamegraph.pl --color=java --hash > flamegraph.svg

Still interested in any addl insights or tips you might have...