jvm-profiling-tools / perf-map-agent

A java agent to generate method mappings to use with the linux `perf` tool
GNU General Public License v2.0
1.64k stars 260 forks source link

Annotate methods in flamegraphs with info from JIT compiler #52

Open jrudolph opened 7 years ago

jrudolph commented 7 years ago

I'm filing it here in lack of a better place so that I don't forget about it.

E.g. if a frame couldn't be inlined because it hit MaxInlineDepth, that info could be somehow annotated graphically in the flame graph. Similar for other inlining decisions.

The tool needed would take the output of -XX:+LogCompilation to produce annotations. Flamegraph would need to be able to merge those annotations into the flamegraph.

nitsanw commented 7 years ago

I think it would be good to have a 'collapsed-stacks-enrichment' project which would include the above and also further potential work as per: http://epickrram.blogspot.co.za/2017/03/named-thread-flamegraphs.html By @epickrram, would fit in snuggly.