eclipse / jifa

🔬 Online Heap Dump, GC Log, Thread Dump & JFR File Analyzer.
https://eclipse.github.io/jifa/
Eclipse Public License 2.0
543 stars 96 forks source link

feat: add support for jdk.ObjectAllocationSample #263

Closed yanglong1010 closed 8 months ago

yanglong1010 commented 8 months ago

hi all

Could I have a review for this patch. I would be very grateful.

For JDK 16 and above, jdk.ObjectAllocationSample is the default allocation event of JFR, jdk.ObjectAllocationInNewTLAB and jdk.ObjectAllocationOutsideTLAB are disabled by default.

This patch adds support for jdk.ObjectAllocationSample. If both jdk.ObjectAllocationSample and TLAB events are enabled, we use jdk.ObjectAllocationSample only, ignore the TLAB events.

Thanks