brendangregg / FlameGraph

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

Create Flame Graphs using JFR #242

Open LakshanKarunathilake opened 4 years ago

LakshanKarunathilake commented 4 years ago

Is there a way to create a flame graph using a JFR file, or any recommendation to convert JFR to a possible format

chrishantha commented 4 years ago

Hi @LakshanKarunathilake, I developed a project. https://github.com/chrishantha/jfr-flame-graph/. This supports Java 8. I'm working on supporting latest Java versions..

This projects is mentioned in the news page: http://www.brendangregg.com/flamegraphs.html See "More Flame Graph news (updated Jun 2015)"

LakshanKarunathilake commented 4 years ago

We are using JDK 11 and it is not supporting JDK 11, any plans on supporting JDK 11? I can land some contributions if you can help me out

apangin commented 3 years ago

FYI, async-profiler has a converter from JFR to FlameGraph, compatible with JDK 11 recordings.

java -cp converter.jar jfr2flame input.jfr output.html

converter.jar is included in all new releases.

LakshanKarunathilake commented 3 years ago

@apangin Thanks I'll look into that

mdellabani commented 1 year ago

Actually the usage is

java -cp converter.jar jfr2flame input.jfr output.html