RFR: 8226897: Provide object age with JFR OldObjectSample event

Markus Gronlund markus.gronlund at oracle.com
Fri Nov 15 18:22:11 UTC 2019


Looks good.

Thanks
Markus

-----Original Message-----
From: Erik Gahlin 
Sent: den 11 november 2019 20:11
To: hotspot-jfr-dev at openjdk.java.net
Subject: RFR: 8226897: Provide object age with JFR OldObjectSample event

Hi,

Could I have a review of this fix that adds object age to the Old Object Sample event.

Example usage:

$ jfr print --events OldObjectSample recording.jfr jdk.OldObjectSample {
   startTime = 19:00:04.543
   allocationTime = 18:59:41.395
   objectAge = 23,148 s
   lastKnownHeapUsage = 983,1 kB
   object =  [
     java.lang.Class Class Name: java.awt.Conditional
   ]
   arrayElements = N/A
   root = N/A
   eventThread = "AWT-EventQueue-0" (javaThreadId = 34) } ...

Webrev:  http://cr.openjdk.java.net/~egahlin/8226897/
Bug: https://bugs.openjdk.java.net/browse/JDK-8226897
Testing: test/jdk/jdk/jfr

Thanks
Erik



More information about the hotspot-jfr-dev mailing list