简体   繁体   中英

Can I analyze .hprof file with Java code?

I just learned Java Mission Control. I thought about how to make Java Flight Recorder with Java code. I analyzed the heap file with lots of different tools, but this time I want to do it with code.

Here are the docs for reading a .jfr file with Java 11 - https://docs.oracle.com/en/java/javase/11/docs/api/jdk.jfr/jdk/jfr/consumer/package-summary.html

There are other (not as supported) APIs for reading older .jfr files (from JDK 8), both with the JFR parser built into the JDK, and the JFR parser built into Java Mission Control.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM