src/share/vm/trace/trace.xml

Print this page

        

@@ -423,10 +423,22 @@
     <event id="AllocObjectOutsideTLAB" path="java/object_alloc_outside_TLAB" label="Allocation outside TLAB"
         description="Allocation outside Thread Local Allocation Buffers" has_thread="true" has_stacktrace="true" is_instant="true">
       <value type="CLASS" field="class" label="Class" description="Class of allocated object"/>
       <value type="BYTES64" field="allocationSize" label="Allocation Size"/>
     </event>
+
+    <!-- Promotion event -->
+    <event id="PromotionSample" path="java/promotion_sample" label="Promotion Sample"
+        description="Object survived scavange and was either copied directly to the heap or to a new Promotion Local Allocation Buffer (PLAB)" has_thread="true" has_stacktrace="false" is_instant="true">
+      <value type="UINT" field="gcId" label="GC ID" relation="GC_ID" description="ID of GC during which the object was promoted"/>
+      <value type="CLASS" field="class" label="Class" description="Class of promoted object"/>
+      <value type="BYTES64" field="objectSize" label="Object Size" description="Size of promoted object"/>
+      <value type="UINT" field="tenuringAge" label="Object Tenuring Age" description="Tenuring age of a surviving object before being copied. The tenuring age of an object is a value between 0-15 and is incremented each scavange the object survives. Newly allocated objects have tenuring age 0."/>
+      <value type="BOOLEAN" field="tenured" label="Tenured" description="Object was promoted to Old Space"/>
+      <value type="BOOLEAN" field="directAllocation" label="Direct Allocation" description="Object was promoted to directly to heap without using a PLAB"/>
+      <value type="BYTES64" field="plabSize" label="PLAB Size" description="Size of the PLAB allocated as part of the promotion"/>
+    </event>
   </events>
 
   <xi:include href="../../../closed/share/vm/trace/traceeventtypes.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
     <xi:fallback/>
   </xi:include>