FlameGraph icon indicating copy to clipboard operation
FlameGraph copied to clipboard

Create Flame Graphs using JFR

Open LakshanKarunathilake opened this issue 4 years ago • 5 comments

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

LakshanKarunathilake avatar Nov 10 '20 04:11 LakshanKarunathilake

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)"

chrishantha avatar Nov 19 '20 23:11 chrishantha

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

LakshanKarunathilake avatar Nov 25 '20 04:11 LakshanKarunathilake

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.

apangin avatar Feb 15 '21 14:02 apangin

@apangin Thanks I'll look into that

LakshanKarunathilake avatar Feb 15 '21 14:02 LakshanKarunathilake

Actually the usage is

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

mdellabani avatar Dec 10 '22 22:12 mdellabani