1 <?xml version="1.0" encoding="utf-8"?>
   2 <!--
   3  Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
   4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 
   6  This code is free software; you can redistribute it and/or modify it
   7  under the terms of the GNU General Public License version 2 only, as
   8  published by the Free Software Foundation.
   9 
  10  This code is distributed in the hope that it will be useful, but WITHOUT
  11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  version 2 for more details (a copy is included in the LICENSE file that
  14  accompanied this code).
  15 
  16  You should have received a copy of the GNU General Public License version
  17  2 along with this work; if not, write to the Free Software Foundation,
  18  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 
  20  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  or visit www.oracle.com if you need additional information or have any
  22  questions.
  23 
  24 -->
  25 
  26 
  27 <!DOCTYPE trace SYSTEM "trace.dtd" [
  28 <!ENTITY % xinclude SYSTEM "xinclude.mod">
  29 %xinclude;
  30 ]>
  31 
  32 <trace>
  33   <xi:include href="tracetypes.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
  34 
  35   <relation_decls>
  36     <relation_decl id="GC_ID" uri="vm/gc/id"/>
  37     <relation_decl id="COMP_ID" uri="vm/compiler/id"/>
  38     <relation_decl id="SWEEP_ID" uri="vm/code_sweeper/id"/>
  39     <relation_decl id="JAVA_MONITOR_ADDRESS" uri="java/monitor/address"/>
  40   </relation_decls>
  41 
  42 <!--
  43 
  44 Events in the JVM are by default timed (it's more common)
  45 Perhaps a little strange. Might change.
  46 
  47 EVENTS
  48 
  49 Declard with the 'event' tag.
  50 
  51 <value fields> can be one or more of
  52    value            - a simple primitive or constant type value
  53    structvalue      - value is a sub-struct. This type must be previously defined
  54                       with 'struct'
  55 All these require you to declare type, field and label of the field. They also accept
  56 an optional description of the field. If the meaning of the field is not obvious
  57 from the label you should provide a description. If an event however is not actually
  58 meant for end-users, you should probably _not_ write descriptions at all, since you
  59 might just add more concepts the user has no notion of/interest in.
  60 
  61 Events should be modeled after what conceptual process you are expressing, _NOT_
  62 from whatever data structures you might use inside the JVM for expressing a process.
  63 
  64 
  65 STRUCT
  66 
  67 Declared with the 'struct' tag.
  68 
  69 Declares a structure type that can be used in other events.
  70 
  71 -->
  72 
  73   <events>
  74     <event id="ThreadStart" path="java/thread_start" label="Java Thread Start"
  75            has_thread="true" is_instant="true">
  76       <value type="JAVALANGTHREAD" field="javalangthread" label="Java Thread"/>
  77     </event>
  78 
  79     <event id="ThreadEnd" path="java/thread_end" label="Java Thread End"
  80            has_thread="true" is_instant="true">
  81       <value type="JAVALANGTHREAD" field="javalangthread" label="Java Thread"/>
  82     </event>
  83 
  84     <event id="ThreadSleep" path="java/thread_sleep" label="Java Thread Sleep"
  85             has_thread="true" has_stacktrace="true" is_instant="false">
  86       <value type="MILLIS" field="time" label="Sleep Time"/>
  87     </event>
  88 
  89     <event id="ThreadPark" path="java/thread_park" label="Java Thread Park"
  90             has_thread="true" has_stacktrace="true" is_instant="false">
  91       <value type="CLASS" field="klass" label="Class Parked On"/>
  92       <value type="MILLIS" field="timeout" label="Park Timeout"/>
  93       <value type="ADDRESS" field="address" label="Address of Object Parked" relation="JAVA_MONITOR_ADDRESS"/>
  94     </event>
  95 
  96     <event id="JavaMonitorEnter" path="java/monitor_enter" label="Java Monitor Blocked"
  97             has_thread="true" has_stacktrace="true" is_instant="false">
  98       <value type="CLASS" field="klass" label="Monitor Class"/>
  99       <value type="JAVALANGTHREAD" field="previousOwner" label="Previous Monitor Owner"/>
 100       <value type="ADDRESS" field="address" label="Monitor Address" relation="JAVA_MONITOR_ADDRESS"/>
 101     </event>
 102 
 103     <event id="JavaMonitorWait" path="java/monitor_wait" label="Java Monitor Wait" description="Waiting on a Java monitor"
 104             has_thread="true" has_stacktrace="true" is_instant="false">
 105       <value type="CLASS" field="klass" label="Monitor Class" description="Class of object waited on"/>
 106       <value type="OSTHREAD" field="notifier" label="Notifier Thread" description="Notifying Thread"/>
 107       <value type="MILLIS" field="timeout" label="Timeout" description="Maximum wait time"/>
 108       <value type="BOOLEAN" field="timedOut" label="Timed Out" description="Wait has been timed out"/>
 109       <value type="ADDRESS" field="address" label="Monitor Address" description="Address of object waited on" relation="JAVA_MONITOR_ADDRESS"/>
 110     </event>
 111 
 112     <event id="JavaMonitorInflate" path="java/monitor_inflate" label="Java Monitor Inflated"
 113            has_thread="true" has_stacktrace="true" is_instant="false">
 114       <value type="CLASS" field="klass" label="Monitor Class"/>
 115       <value type="ADDRESS" field="address" label="Monitor Address" relation="JAVA_MONITOR_ADDRESS"/>
 116       <value type="INFLATECAUSE" field="cause" label="Cause" description="Cause of inflation"/>
 117     </event>
 118 
 119     <event id="ReservedStackActivation" path="java/reserved_stack_activation" label="Reserved Stack Activation" description="Activation of Reserved Stack Area caused by stack overflow with ReservedStackAccess annotated method in call stack"
 120             has_thread="true" has_stacktrace="true" is_instant="true">
 121         <value type="METHOD" field="method" label="Java Method"/>
 122     </event>
 123 
 124     <event id="ClassLoad" path="vm/class/load" label="Class Load"
 125             has_thread="true" has_stacktrace="true" is_instant="false">
 126       <value type="CLASS" field="loadedClass" label="Loaded Class"/>
 127       <value type="CLASS" field="definingClassLoader" label="Defining Class Loader"/>
 128       <value type="CLASS" field="initiatingClassLoader" label="Initiating Class Loader"/>
 129     </event>
 130 
 131     <event id="ClassUnload" path="vm/class/unload" label="Class Unload"
 132         has_thread="true" is_instant="true">
 133       <value type="CLASS" field="unloadedClass" label="Unloaded Class"/>
 134       <value type="CLASS" field="definingClassLoader" label="Defining Class Loader"/>
 135     </event>
 136 
 137     <event id="IntFlagChanged" path="vm/flag/int_changed" label="Int Flag Changed"
 138           is_instant="true">
 139       <value type="UTF8" field="name" label="Name" />
 140       <value type="INTEGER" field="old_value" label="Old Value" />
 141       <value type="INTEGER" field="new_value" label="New Value" />
 142       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 143     </event>
 144 
 145     <event id="UnsignedIntFlagChanged" path="vm/flag/uint_changed" label="Unsigned Int Flag Changed"
 146           is_instant="true">
 147       <value type="UTF8" field="name" label="Name" />
 148       <value type="UINT" field="old_value" label="Old Value" />
 149       <value type="UINT" field="new_value" label="New Value" />
 150       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 151     </event>
 152 
 153     <event id="LongFlagChanged" path="vm/flag/long_changed" label="Long Flag Changed"
 154           is_instant="true">
 155       <value type="UTF8" field="name" label="Name" />
 156       <value type="LONG" field="old_value" label="Old Value" />
 157       <value type="LONG" field="new_value" label="New Value" />
 158       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 159     </event>
 160 
 161     <event id="UnsignedLongFlagChanged" path="vm/flag/ulong_changed" label="Unsigned Long Flag Changed"
 162           is_instant="true">
 163       <value type="UTF8" field="name" label="Name" />
 164       <value type="ULONG" field="old_value" label="Old Value" />
 165       <value type="ULONG" field="new_value" label="New Value" />
 166       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 167     </event>
 168 
 169     <event id="DoubleFlagChanged" path="vm/flag/double_changed" label="Double Flag Changed"
 170          is_instant="true">
 171       <value type="UTF8" field="name" label="Name" />
 172       <value type="DOUBLE" field="old_value" label="Old Value" />
 173       <value type="DOUBLE" field="new_value" label="New Value" />
 174       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 175     </event>
 176 
 177     <event id="BooleanFlagChanged" path="vm/flag/boolean_changed" label="Boolean Flag Changed"
 178          is_instant="true">
 179       <value type="UTF8" field="name" label="Name" />
 180       <value type="BOOLEAN" field="old_value" label="Old Value" />
 181       <value type="BOOLEAN" field="new_value" label="New Value" />
 182       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 183     </event>
 184 
 185     <event id="StringFlagChanged" path="vm/flag/string_changed" label="String Flag Changed"
 186          is_instant="true">
 187       <value type="UTF8" field="name" label="Name" />
 188       <value type="UTF8" field="old_value" label="Old Value" />
 189       <value type="UTF8" field="new_value" label="New Value" />
 190       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 191     </event>
 192 
 193     <struct id="VirtualSpace">
 194       <value type="ADDRESS" field="start" label="Start Address" description="Start address of the virtual space" />
 195       <value type="ADDRESS" field="committedEnd" label="Committed End Address" description="End address of the committed memory for the virtual space" />
 196       <value type="BYTES64" field="committedSize" label="Committed Size" description="Size of the committed memory for the virtual space" />
 197       <value type="ADDRESS" field="reservedEnd" label="Reserved End Address" description="End address of the reserved memory for the virtual space" />
 198       <value type="BYTES64" field="reservedSize" label="Reserved Size" description="Size of the reserved memory for the virtual space" />
 199     </struct>
 200 
 201     <struct id="ObjectSpace">
 202       <value type="ADDRESS" field="start" label="Start Address" description="Start address of the space" />
 203       <value type="ADDRESS" field="end" label="End Address" description="End address of the space" />
 204       <value type="BYTES64" field="used" label="Used" description="Bytes allocated by objects in the space" />
 205       <value type="BYTES64" field="size" label="Size" description="Size of the space" />
 206     </struct>
 207 
 208     <event id="GCHeapSummary" path="vm/gc/heap/summary" label="Heap Summary" is_instant="true">
 209       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 210       <value type="GCWHEN" field="when" label="When" />
 211       <structvalue type="VirtualSpace" field="heapSpace" label="Heap Space"/>
 212       <value type="BYTES64" field="heapUsed" label="Heap Used" description="Bytes allocated by objects in the heap"/>
 213     </event>
 214 
 215     <struct id="MetaspaceSizes">
 216       <value type="BYTES64" field="committed" label="Committed" description="Committed memory for this space" />
 217       <value type="BYTES64" field="used" label="Used" description="Bytes allocated by objects in the space" />
 218       <value type="BYTES64" field="reserved" label="Reserved" description="Reserved memory for this space" />
 219     </struct>
 220 
 221     <event id="MetaspaceSummary" path="vm/gc/heap/metaspace_summary" label="Metaspace Summary" is_instant="true">
 222       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 223       <value type="GCWHEN" field="when" label="When" />
 224       <value type="BYTES64" field="gcThreshold" label="GC Threshold" />
 225       <structvalue type="MetaspaceSizes" field="metaspace" label="Total"/>
 226       <structvalue type="MetaspaceSizes" field="dataSpace" label="Data"/>
 227       <structvalue type="MetaspaceSizes" field="classSpace" label="Class"/>
 228     </event>
 229 
 230     <event id="MetaspaceGCThreshold" path="vm/gc/metaspace/gc_threshold" label="Metaspace GC Threshold" is_instant="true">
 231       <value type="BYTES64" field="oldValue" label="Old Value" />
 232       <value type="BYTES64" field="newValue" label="New Value" />
 233       <value type="GCTHRESHOLDUPDATER" field="updater" label="Updater" />
 234     </event>
 235 
 236     <event id="MetaspaceAllocationFailure" path="vm/gc/metaspace/allocation_failure" label="Metaspace Allocation Failure" is_instant="true" has_stacktrace="true">
 237       <value type="CLASS" field="classLoader" label="Class Loader" />
 238       <value type="BOOLEAN" field="anonymousClassLoader" label="Anonymous Class Loader" />
 239       <value type="BYTES64" field="size" label="Size" />
 240       <value type="METADATATYPE" field="metadataType" label="Metadata Type" />
 241       <value type="METASPACEOBJTYPE" field="metaspaceObjectType" label="Metaspace Object Type" />
 242     </event>
 243 
 244     <event id="MetaspaceOOM" path="vm/gc/metaspace/out_of_memory" label="Metaspace Out of Memory" is_instant="true" has_stacktrace="true">
 245       <value type="CLASS" field="classLoader" label="Class Loader" />
 246       <value type="BOOLEAN" field="anonymousClassLoader" label="Anonymous Class Loader" />
 247       <value type="BYTES64" field="size" label="Size" />
 248       <value type="METADATATYPE" field="metadataType" label="Metadata Type" />
 249       <value type="METASPACEOBJTYPE" field="metaspaceObjectType" label="Metaspace Object Type" />
 250     </event>
 251 
 252     <event id="MetaspaceChunkFreeListSummary" path="vm/gc/metaspace/chunk_free_list_summary" label="Metaspace Chunk Free List Summary" is_instant="true">
 253       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 254       <value type="GCWHEN" field="when" label="When" />
 255       <value type="METADATATYPE" field="metadataType" label="Metadata Type" />
 256       <value type="ULONG" field="specializedChunks" label="Specialized Chunks" />
 257       <value type="BYTES64" field="specializedChunksTotalSize" label="Specialized Chunks Total Size" />
 258       <value type="ULONG" field="smallChunks" label="Small Chunks" />
 259       <value type="BYTES64" field="smallChunksTotalSize" label="Small Chunks Total Size" />
 260       <value type="ULONG" field="mediumChunks" label="Medium Chunks" />
 261       <value type="BYTES64" field="mediumChunksTotalSize" label="Medium Chunks Total Size" />
 262       <value type="ULONG" field="humongousChunks" label="Humongous Chunks" />
 263       <value type="BYTES64" field="humongousChunksTotalSize" label="Humongous Chunks Total Size" />
 264     </event>
 265 
 266     <event id="PSHeapSummary" path="vm/gc/heap/ps_summary" label="Parallel Scavenge Heap Summary" is_instant="true">
 267       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 268       <value type="GCWHEN" field="when" label="When" />
 269 
 270       <structvalue type="VirtualSpace" field="oldSpace" label="Old Space"/>
 271       <structvalue type="ObjectSpace" field="oldObjectSpace" label="Old Object Space"/>
 272 
 273       <structvalue type="VirtualSpace" field="youngSpace" label="Young Space"/>
 274       <structvalue type="ObjectSpace" field="edenSpace" label="Eden Space"/>
 275       <structvalue type="ObjectSpace" field="fromSpace" label="From Space"/>
 276       <structvalue type="ObjectSpace" field="toSpace" label="To Space"/>
 277     </event>
 278 
 279     <event id="G1HeapSummary" path="vm/gc/heap/g1_summary" label="G1 Heap Summary" is_instant="true">
 280       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 281       <value type="GCWHEN" field="when" label="When" />
 282 
 283       <value type="BYTES64" field="edenUsedSize" label="Eden Used Size" />
 284       <value type="BYTES64" field="edenTotalSize" label="Eden Total Size" />
 285       <value type="BYTES64" field="survivorUsedSize" label="Survivor Used Size" />
 286     </event>
 287 
 288     <event id="GCGarbageCollection" path="vm/gc/collector/garbage_collection" label="Garbage Collection"
 289            description="Garbage collection performed by the JVM">
 290       <value type="UINT" field="gcId"  label="GC ID" relation="GC_ID" />
 291       <value type="GCNAME" field="name" label="Name" description="The name of the Garbage Collector" />
 292       <value type="GCCAUSE" field="cause" label="Cause" description="The reason for triggering this Garbage Collection" />
 293       <value type="TICKSPAN" field="sumOfPauses" label="Sum of Pauses" description="Sum of all the times in which Java execution was paused during the garbage collection" />
 294       <value type="TICKSPAN" field="longestPause" label="Longest Pause" description="Longest individual pause during the garbage collection" />
 295     </event>
 296 
 297     <event id="GCParallelOld" path="vm/gc/collector/parold_garbage_collection" label="Parallel Old Garbage Collection"
 298            description="Extra information specific to Parallel Old Garbage Collections">
 299       <value type="UINT" field="gcId"  label="GC ID" relation="GC_ID" />
 300       <value type="ADDRESS" field="densePrefix" label="Dense Prefix" description="The address of the dense prefix, used when compacting" />
 301     </event>
 302 
 303     <event id="GCYoungGarbageCollection" path="vm/gc/collector/young_garbage_collection" label="Young Garbage Collection"
 304            description="Extra information specific to Young Garbage Collections">
 305       <value type="UINT" field="gcId"  label="GC ID" relation="GC_ID" />
 306       <value type="UINT" field="tenuringThreshold" label="Tenuring Threshold" />
 307     </event>
 308 
 309     <event id="GCOldGarbageCollection" path="vm/gc/collector/old_garbage_collection" label="Old Garbage Collection"
 310            description="Extra information specific to Old Garbage Collections">
 311       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 312     </event>
 313 
 314     <event id="GCG1GarbageCollection" path="vm/gc/collector/g1_garbage_collection" label="G1 Garbage Collection"
 315            description="Extra information specific to G1 Garbage Collections">
 316       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 317       <value type="G1YCTYPE" field="type" label="Type" />
 318     </event>
 319 
 320     <event id="GCG1MMU" path="vm/gc/detailed/g1_mmu_info" label="G1 MMU Information" is_instant="true">
 321       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 322       <value type="DOUBLE" field="timeSlice" label="Time slice used to calculate MMU"/>
 323       <value type="DOUBLE" field="gcTime" label="Time spent on GC during last time slice"/>
 324       <value type="DOUBLE" field="maxGcTime" label="Max time allowed to be spent on GC during last time slice"/>
 325     </event>
 326 
 327     <event id="EvacuationInfo" path="vm/gc/detailed/evacuation_info" label="Evacuation Information" is_instant="true">
 328       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 329       <value type="UINT" field="cSetRegions" label="Collection Set Regions"/>
 330       <value type="BYTES64" field="cSetUsedBefore" label="Collection Set Before" description="Memory usage before GC in the collection set regions"/>
 331       <value type="BYTES64" field="cSetUsedAfter" label="Collection Set After" description="Memory usage after GC in the collection set regions"/>
 332       <value type="UINT" field="allocationRegions" label="Allocation Regions" description="Regions chosen as allocation regions during evacuation (includes survivors and old space regions)"/>
 333       <value type="BYTES64" field="allocRegionsUsedBefore" label="Alloc Regions Before" description="Memory usage before GC in allocation regions"/>
 334       <value type="BYTES64" field="allocRegionsUsedAfter" label="Alloc Regions After" description="Memory usage after GC in allocation regions"/>
 335       <value type="BYTES64" field="bytesCopied" label="Bytes Copied"/>
 336       <value type="UINT" field="regionsFreed" label="Regions Freed"/>
 337     </event>
 338 
 339     <event id="GCReferenceStatistics" path="vm/gc/reference/statistics"
 340            label="GC Reference Statistics" is_instant="true"
 341            description="Total count of processed references during GC">
 342       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 343       <value type="REFERENCETYPE" field="type" label="Type" />
 344       <value type="ULONG" field="count" label="Total Count" />
 345     </event>
 346 
 347     <struct id="CopyFailed">
 348       <value type="ULONG" field="objectCount" label="Object Count"/>
 349       <value type="BYTES64" field="firstSize" label="First Failed Object Size"/>
 350       <value type="BYTES64" field="smallestSize" label="Smallest Failed Object Size"/>
 351       <value type="BYTES64" field="totalSize" label="Total Object Size"/>
 352     </struct>
 353 
 354     <event id="ObjectCountAfterGC" path="vm/gc/detailed/object_count_after_gc" is_instant="true" label="Object Count after GC">
 355       <value type="UINT" field="gcId"  label="GC ID" relation="GC_ID" />
 356       <value type="CLASS" field="class" label="Class" />
 357       <value type="LONG" field="count" label="Count" />
 358       <value type="BYTES64" field="totalSize" label="Total Size" />
 359     </event>
 360 
 361     <struct id="G1EvacStats">
 362       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 363       <value type="BYTES64" field="allocated" label="Allocated" description="Total memory allocated by PLABs"/>
 364       <value type="BYTES64" field="wasted" label="Wasted" description="Total memory wasted within PLABs due to alignment or refill"/>
 365       <value type="BYTES64" field="used" label="Used" description="Total memory occupied by objects within PLABs"/>
 366       <value type="BYTES64" field="undoWaste" label="Undo Wasted" description="Total memory wasted due to allocation undo within PLABs"/>
 367       <value type="BYTES64" field="regionEndWaste" label="Region End Wasted" description="Total memory wasted at the end of regions due to refill"/>
 368       <value type="UINT" field="regionsRefilled" label="Region Refills" description="Total memory wasted at the end of regions due to refill"/>
 369       <value type="BYTES64" field="directAllocated" label="Allocated (direct)" description="Total memory allocated using direct allocation outside of PLABs"/>
 370       <value type="BYTES64" field="failureUsed" label="Used (failure)" description="Total memory occupied by objects in regions where evacuation failed"/>
 371       <value type="BYTES64" field="failureWaste" label="Wasted (failure)" description="Total memory left unused in regions where evacuation failed"/>
 372     </struct>
 373 
 374     <event id="GCG1EvacuationYoungStatistics" path="vm/gc/detailed/g1_evac_young_stats" label="G1 Evacuation Statistics for Young" is_instant="true"
 375            description="Memory related evacuation statistics during GC for the young generation">
 376       <structvalue type="G1EvacStats" field="stats" label="Evacuation statistics"/>
 377     </event>
 378 
 379     <event id="GCG1EvacuationOldStatistics" path="vm/gc/detailed/g1_evac_old_stats" label="G1 Evacuation Memory Statistics for Old" is_instant="true"
 380            description="Memory related evacuation statistics during GC for the old generation">
 381       <structvalue type="G1EvacStats" field="stats" label="Evacuation statistics"/>
 382     </event>
 383 
 384     <event id="GCG1BasicIHOP" path="vm/gc/detailed/g1_basic_ihop_status" label="G1 Basic IHOP statistics" is_instant="true"
 385            description="Basic statistics related to current IHOP calculation">
 386       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 387       <value type="BYTES64" field="threshold" label="Current IHOP threshold" description="Current IHOP threshold in bytes"/>
 388       <value type="BYTES64" field="thresholdPercentage" label="Current IHOP threshold in percent" description="Current IHOP threshold in percent of old gen"/>
 389       <value type="BYTES64" field="targetOccupancy" label="Target occupancy" description="Target old gen occupancy to reach at the start of mixed GC in bytes"/>
 390       <value type="BYTES64" field="currentOccupancy" label="Current occupancy" description="Current old gen occupancy in bytes"/>
 391       <value type="BYTES64" field="lastAllocationSize" label="Last mutator allocation size" description="Mutator allocation during mutator operation since last GC in bytes"/>
 392       <value type="DOUBLE" field="lastAllocationDuration" label="Last mutator operation duration" description="Time the mutator ran since last GC in seconds"/>
 393       <value type="DOUBLE" field="lastAllocationRate" label="Last mutator allocation rate" description="Allocation rate of the mutator since last GC in bytes/second"/>
 394       <value type="DOUBLE" field="lastMarkingLength" label="Last mutator time from initial mark to first mixed GC" description="Last time from the end of the last initial mark to the first mixed GC in seconds"/>
 395     </event>
 396 
 397     <event id="GCG1AdaptiveIHOP" path="vm/gc/detailed/g1_adaptive_ihop_status" label="G1 Adaptive IHOP statistics" is_instant="true"
 398            description="Statistics related to current adaptive IHOP calculation">
 399       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 400       <value type="BYTES64" field="threshold" label="Current IHOP threshold" description="Current IHOP threshold in bytes"/>
 401       <value type="BYTES64" field="thresholdPercentage" label="Current IHOP threshold in percent" description="Current IHOP threshold in percent of the internal target occupancy"/>
 402       <value type="BYTES64" field="internalTargetOccupancy" label="Target occupancy" description="Internal target old gen occupancy to reach at the start of mixed GC in bytes"/>
 403       <value type="BYTES64" field="currentOccupancy" label="Current occupancy" description="Current old gen occupancy in bytes"/>
 404       <value type="BYTES64" field="additionalBufferSize" label="Additional buffer size" description="Additional buffer size in bytes"/>
 405       <value type="DOUBLE" field="predictedAllocationRate" label="Predicted mutator allocation rate" description="Current predicted allocation rate for the mutator in bytes/second"/>
 406       <value type="DOUBLE" field="predictedMarkingLength" label="Predicted time from initial mark to first mixed GC" description="Current predicted time from the end of the last initial mark to the first mixed GC in seconds"/>
 407       <value type="BOOLEAN" field="predictionActive" label="Prediction active" description="Indicates whether the adaptive IHOP prediction is active"/>
 408     </event>
 409 
 410     <!-- Promotion events, Supported GCs are Parallel Scavange, G1 and CMS with Parallel New. -->
 411     <event id="PromoteObjectInNewPLAB" path="vm/gc/detailed/object_promotion_in_new_PLAB" label="Promotion in new PLAB"
 412         description="Object survived scavenge and was copied to a new Promotion Local Allocation Buffer (PLAB). Supported GCs are Parallel Scavange, G1 and CMS with Parallel New. Due to promotion being done in parallel an object might be reported multiple times as the GC threads race to copy all objects." 
 413            has_thread="true" has_stacktrace="false" is_instant="true">
 414       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID" description="ID of GC during which the object was promoted"/>
 415       <value type="CLASS" field="class" label="Class" description="Class of promoted object"/>
 416       <value type="BYTES64" field="objectSize" label="Object Size" description="Size of promoted object"/>
 417       <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."/>
 418       <value type="BOOLEAN" field="tenured" label="Tenured" description="True if object was promoted to Old space, otherwise the object was aged and copied to a Survivor space"/>
 419       <value type="BYTES64" field="plabSize" label="PLAB Size" description="Size of the allocated PLAB to which the object was copied"/>
 420     </event>
 421     
 422     <event id="PromoteObjectOutsidePLAB" path="vm/gc/detailed/object_promotion_outside_PLAB" label="Promotion outside PLAB"
 423         description="Object survived scavenge and was copied directly to the heap. Supported GCs are Parallel Scavange, G1 and CMS with Parallel New. Due to promotion being done in parallel an object might be reported multiple times as the GC threads race to copy all objects." 
 424            has_thread="true" has_stacktrace="false" is_instant="true">
 425       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID" description="ID of GC during which the object was promoted"/>
 426       <value type="CLASS" field="class" label="Class" description="Class of promoted object"/>
 427       <value type="BYTES64" field="objectSize" label="Object Size" description="Size of promoted object"/>
 428       <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."/>
 429       <value type="BOOLEAN" field="tenured" label="Tenured" description="True if object was promoted to Old space, otherwise the object was aged and copied to a Survivor space"/>
 430     </event>
 431 
 432     <event id="PromotionFailed" path="vm/gc/detailed/promotion_failed" label="Promotion Failed" is_instant="true"
 433            description="Promotion of an object failed">
 434       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 435       <structvalue type="CopyFailed" field="data" label="Data"/>
 436       <value type="OSTHREAD" field="thread" label="Running thread"/>
 437     </event>
 438 
 439     <event id="EvacuationFailed" path="vm/gc/detailed/evacuation_failed" label="Evacuation Failed" is_instant="true"
 440            description="Evacuation of an object failed">
 441       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 442       <structvalue type="CopyFailed" field="data" label="Data"/>
 443     </event>
 444 
 445     <event id="ConcurrentModeFailure" path="vm/gc/detailed/concurrent_mode_failure" label="Concurrent Mode Failure"
 446            is_instant="true" description="Concurrent Mode failed">
 447       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 448     </event>
 449 
 450     <event id="GCPhasePause" path="vm/gc/phases/pause" label="GC Phase Pause">
 451       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 452       <value type="UTF8" field="name" label="Name" />
 453     </event>
 454 
 455     <event id="GCPhasePauseLevel1" path="vm/gc/phases/pause_level_1" label="GC Phase Pause Level 1">
 456       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 457       <value type="UTF8" field="name" label="Name" />
 458     </event>
 459 
 460     <event id="GCPhasePauseLevel2" path="vm/gc/phases/pause_level_2" label="GC Phase Pause Level 2">
 461       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 462       <value type="UTF8" field="name" label="Name" />
 463     </event>
 464 
 465     <event id="GCPhasePauseLevel3" path="vm/gc/phases/pause_level_3" label="GC Phase Pause Level 3">
 466       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 467       <value type="UTF8" field="name" label="Name" />
 468     </event>
 469 
 470     <event id="GCPhaseConcurrent" path="vm/gc/phases/concurrent" label="GC Phase Concurrent">
 471       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 472       <value type="UTF8" field="name" label="Name" />
 473     </event>
 474 
 475     <event id="AllocationRequiringGC" path="vm/gc/detailed/allocation_requiring_gc" label="Allocation Requiring GC"
 476            has_thread="true" has_stacktrace="true"  is_instant="true">
 477       <value type="UINT" field="gcId"  label="Pending GC ID" relation="GC_ID" />
 478       <value type="BYTES64" field="size" label="Allocation Size" />
 479     </event>
 480 
 481     <!-- Compiler events -->
 482 
 483     <event id="Compilation" path="vm/compiler/compilation" label="Compilation"
 484          has_thread="true" is_requestable="false" is_constant="false">
 485       <value type="METHOD" field="method" label="Java Method"/>
 486       <value type="UINT" field="compileID" label="Compilation ID" relation="COMP_ID"/>
 487       <value type="USHORT" field="compileLevel" label="Compilation Level"/>
 488       <value type="BOOLEAN" field="succeded" label="Succeeded"/>
 489       <value type="BOOLEAN" field="isOsr" label="On Stack Replacement"/>
 490       <value type="BYTES" field="codeSize" label="Compiled Code Size"/>
 491       <value type="BYTES" field="inlinedBytes" label="Inlined Code Size"/>
 492     </event>
 493 
 494     <event id="CompilerPhase" path="vm/compiler/phase" label="Compiler Phase"
 495             has_thread="true" is_requestable="false" is_constant="false">
 496       <value type="COMPILERPHASETYPE" field="phase" label="Compile Phase"/>
 497       <value type="UINT" field="compileID" label="Compilation ID" relation="COMP_ID"/>
 498       <value type="USHORT" field="phaseLevel" label="Phase Level"/>
 499     </event>
 500 
 501     <event id="CompilerFailure" path="vm/compiler/failure" label="Compilation Failure"
 502             has_thread="true" is_requestable="false" is_constant="false" is_instant="true">
 503       <value type="UTF8" field="failure" label="Message"/>
 504       <value type="UINT" field="compileID" label="Compilation ID" relation="COMP_ID"/>
 505     </event>
 506 
 507     <struct id="CiMethod">
 508       <value type="UTF8" field="class" label="Class name"/>
 509       <value type="UTF8" field="name" label="Method name"/>
 510       <value type="UTF8" field="signature" label="Method signature"/>
 511     </struct>
 512 
 513     <event id="CompilerInlining" path="vm/compiler/optimization/inlining" label="Method Inlining"
 514          has_thread="true" is_instant="true">
 515       <value type="UINT" field="compileID" label="Compilation ID" relation="COMP_ID"/>
 516       <value type="METHOD" field="caller" label="Caller Method"/>
 517       <structvalue type="CiMethod" field="callee" label="Callee Method"/>
 518       <value type="BOOLEAN" field="succeeded" label="Succeeded"/>
 519       <value type="UTF8" field="message" label="Message"/>
 520       <value type="INTEGER" field="bci" label="Byte Code Index"/>
 521     </event>
 522 
 523     <!-- Code sweeper events -->
 524 
 525     <event id="SweepCodeCache" path="vm/code_sweeper/sweep" label="Sweep Code Cache"
 526        has_thread="true" is_requestable="false" is_constant="false">
 527       <value type="INTEGER" field="sweepIndex" label="Sweep Index" relation="SWEEP_ID"/>
 528       <value type="UINT" field="sweptCount" label="Methods Swept"/>
 529       <value type="UINT" field="flushedCount" label="Methods Flushed"/>
 530       <value type="UINT" field="markedCount" label="Methods Reclaimed"/>
 531       <value type="UINT" field="zombifiedCount" label="Methods Zombified"/>
 532     </event>
 533 
 534     <!-- Code cache events -->
 535 
 536     <event id="CodeCacheFull" path="vm/code_cache/full" label="Code Cache Full"
 537          has_thread="true" is_requestable="false" is_constant="false" is_instant="true">
 538       <value type="CODEBLOBTYPE" field="codeBlobType" label="Code Heap"/>
 539       <value type="ADDRESS" field="startAddress" label="Start Address"/>
 540       <value type="ADDRESS" field="commitedTopAddress" label="Commited Top"/>
 541       <value type="ADDRESS" field="reservedTopAddress" label="Reserved Top"/>
 542       <value type="INTEGER" field="entryCount" label="Entries"/>
 543       <value type="INTEGER" field="methodCount" label="Methods"/>
 544       <value type="INTEGER" field="adaptorCount" label="Adaptors"/>
 545       <value type="BYTES64" field="unallocatedCapacity" label="Unallocated"/>
 546       <value type="INTEGER" field="fullCount" label="Full Count"/>
 547     </event>
 548 
 549     <event id="ExecuteVMOperation" path="vm/runtime/execute_vm_operation" label="VM Operation"
 550         description="Execution of a VM Operation" has_thread="true">
 551       <value type="VMOPERATIONTYPE" field="operation" label="Operation" />
 552       <value type="BOOLEAN" field="safepoint" label="At Safepoint" description="If the operation occured at a safepoint."/>
 553       <value type="BOOLEAN" field="blocking" label="Caller Blocked" description="If the calling thread was blocked until the operation was complete."/>
 554       <value type="OSTHREAD" field="caller" label="Caller" transition="FROM" description="Thread requesting operation. If non-blocking, will be set to 0 indicating thread is unknown."/>
 555     </event>
 556 
 557     <!-- Allocation events -->
 558     <event id="AllocObjectInNewTLAB" path="java/object_alloc_in_new_TLAB" label="Allocation in new TLAB"
 559         description="Allocation in new Thread Local Allocation Buffer" has_thread="true" has_stacktrace="true" is_instant="true">
 560       <value type="CLASS" field="class" label="Class" description="Class of allocated object"/>
 561       <value type="BYTES64" field="allocationSize" label="Allocation Size"/>
 562       <value type="BYTES64" field="tlabSize" label="TLAB Size"/>
 563     </event>
 564 
 565     <event id="AllocObjectOutsideTLAB" path="java/object_alloc_outside_TLAB" label="Allocation outside TLAB"
 566         description="Allocation outside Thread Local Allocation Buffers" has_thread="true" has_stacktrace="true" is_instant="true">
 567       <value type="CLASS" field="class" label="Class" description="Class of allocated object"/>
 568       <value type="BYTES64" field="allocationSize" label="Allocation Size"/>
 569     </event>
 570   </events>
 571 
 572   <xi:include href="../../../closed/share/vm/trace/traceeventtypes.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
 573     <xi:fallback/>
 574   </xi:include>
 575 
 576   <xi:include href="../../../closed/share/vm/trace/traceevents.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
 577     <xi:fallback/>
 578   </xi:include>
 579 </trace>