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="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"
 113             has_thread="true" has_stacktrace="true" is_instant="true">
 114         <value type="METHOD" field="method" label="Java Method"/>
 115     </event>
 116 
 117     <event id="ClassLoad" path="vm/class/load" label="Class Load"
 118             has_thread="true" has_stacktrace="true" is_instant="false">
 119       <value type="CLASS" field="loadedClass" label="Loaded Class"/>
 120       <value type="CLASS" field="definingClassLoader" label="Defining Class Loader"/>
 121       <value type="CLASS" field="initiatingClassLoader" label="Initiating Class Loader"/>
 122     </event>
 123 
 124     <event id="ClassUnload" path="vm/class/unload" label="Class Unload"
 125         has_thread="true" is_instant="true">
 126       <value type="CLASS" field="unloadedClass" label="Unloaded Class"/>
 127       <value type="CLASS" field="definingClassLoader" label="Defining Class Loader"/>
 128     </event>
 129 
 130     <event id="IntFlagChanged" path="vm/flag/int_changed" label="Int Flag Changed"
 131           is_instant="true">
 132       <value type="UTF8" field="name" label="Name" />
 133       <value type="INTEGER" field="old_value" label="Old Value" />
 134       <value type="INTEGER" field="new_value" label="New Value" />
 135       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 136     </event>
 137 
 138     <event id="UnsignedIntFlagChanged" path="vm/flag/uint_changed" label="Unsigned Int Flag Changed"
 139           is_instant="true">
 140       <value type="UTF8" field="name" label="Name" />
 141       <value type="UINT" field="old_value" label="Old Value" />
 142       <value type="UINT" field="new_value" label="New Value" />
 143       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 144     </event>
 145 
 146     <event id="LongFlagChanged" path="vm/flag/long_changed" label="Long Flag Changed"
 147           is_instant="true">
 148       <value type="UTF8" field="name" label="Name" />
 149       <value type="LONG" field="old_value" label="Old Value" />
 150       <value type="LONG" field="new_value" label="New Value" />
 151       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 152     </event>
 153 
 154     <event id="UnsignedLongFlagChanged" path="vm/flag/ulong_changed" label="Unsigned Long Flag Changed"
 155           is_instant="true">
 156       <value type="UTF8" field="name" label="Name" />
 157       <value type="ULONG" field="old_value" label="Old Value" />
 158       <value type="ULONG" field="new_value" label="New Value" />
 159       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 160     </event>
 161 
 162     <event id="DoubleFlagChanged" path="vm/flag/double_changed" label="Double Flag Changed"
 163          is_instant="true">
 164       <value type="UTF8" field="name" label="Name" />
 165       <value type="DOUBLE" field="old_value" label="Old Value" />
 166       <value type="DOUBLE" field="new_value" label="New Value" />
 167       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 168     </event>
 169 
 170     <event id="BooleanFlagChanged" path="vm/flag/boolean_changed" label="Boolean Flag Changed"
 171          is_instant="true">
 172       <value type="UTF8" field="name" label="Name" />
 173       <value type="BOOLEAN" field="old_value" label="Old Value" />
 174       <value type="BOOLEAN" field="new_value" label="New Value" />
 175       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 176     </event>
 177 
 178     <event id="StringFlagChanged" path="vm/flag/string_changed" label="String Flag Changed"
 179          is_instant="true">
 180       <value type="UTF8" field="name" label="Name" />
 181       <value type="UTF8" field="old_value" label="Old Value" />
 182       <value type="UTF8" field="new_value" label="New Value" />
 183       <value type="FLAGVALUEORIGIN" field="origin" label="Origin" />
 184     </event>
 185 
 186     <struct id="VirtualSpace">
 187       <value type="ADDRESS" field="start" label="Start Address" description="Start address of the virtual space" />
 188       <value type="ADDRESS" field="committedEnd" label="Committed End Address" description="End address of the committed memory for the virtual space" />
 189       <value type="BYTES64" field="committedSize" label="Committed Size" description="Size of the committed memory for the virtual space" />
 190       <value type="ADDRESS" field="reservedEnd" label="Reserved End Address" description="End address of the reserved memory for the virtual space" />
 191       <value type="BYTES64" field="reservedSize" label="Reserved Size" description="Size of the reserved memory for the virtual space" />
 192     </struct>
 193 
 194     <struct id="ObjectSpace">
 195       <value type="ADDRESS" field="start" label="Start Address" description="Start address of the space" />
 196       <value type="ADDRESS" field="end" label="End Address" description="End address of the space" />
 197       <value type="BYTES64" field="used" label="Used" description="Bytes allocated by objects in the space" />
 198       <value type="BYTES64" field="size" label="Size" description="Size of the space" />
 199     </struct>
 200 
 201     <event id="GCHeapSummary" path="vm/gc/heap/summary" label="Heap Summary" is_instant="true">
 202       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 203       <value type="GCWHEN" field="when" label="When" />
 204       <structvalue type="VirtualSpace" field="heapSpace" label="Heap Space"/>
 205       <value type="BYTES64" field="heapUsed" label="Heap Used" description="Bytes allocated by objects in the heap"/>
 206     </event>
 207 
 208     <struct id="MetaspaceSizes">
 209       <value type="BYTES64" field="committed" label="Committed" description="Committed memory for this space" />
 210       <value type="BYTES64" field="used" label="Used" description="Bytes allocated by objects in the space" />
 211       <value type="BYTES64" field="reserved" label="Reserved" description="Reserved memory for this space" />
 212     </struct>
 213 
 214     <event id="MetaspaceSummary" path="vm/gc/heap/metaspace_summary" label="Metaspace Summary" is_instant="true">
 215       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 216       <value type="GCWHEN" field="when" label="When" />
 217       <value type="BYTES64" field="gcThreshold" label="GC Threshold" />
 218       <structvalue type="MetaspaceSizes" field="metaspace" label="Total"/>
 219       <structvalue type="MetaspaceSizes" field="dataSpace" label="Data"/>
 220       <structvalue type="MetaspaceSizes" field="classSpace" label="Class"/>
 221     </event>
 222 
 223     <event id="MetaspaceGCThreshold" path="vm/gc/metaspace/gc_threshold" label="Metaspace GC Threshold" is_instant="true">
 224       <value type="BYTES64" field="oldValue" label="Old Value" />
 225       <value type="BYTES64" field="newValue" label="New Value" />
 226       <value type="GCTHRESHOLDUPDATER" field="updater" label="Updater" />
 227     </event>
 228 
 229     <event id="MetaspaceAllocationFailure" path="vm/gc/metaspace/allocation_failure" label="Metaspace Allocation Failure" is_instant="true" has_stacktrace="true">
 230       <value type="CLASS" field="classLoader" label="Class Loader" />
 231       <value type="BOOLEAN" field="anonymousClassLoader" label="Anonymous Class Loader" />
 232       <value type="BYTES64" field="size" label="Size" />
 233       <value type="METADATATYPE" field="metadataType" label="Metadata Type" />
 234       <value type="METASPACEOBJTYPE" field="metaspaceObjectType" label="Metaspace Object Type" />
 235     </event>
 236 
 237     <event id="MetaspaceOOM" path="vm/gc/metaspace/out_of_memory" label="Metaspace Out of Memory" is_instant="true" has_stacktrace="true">
 238       <value type="CLASS" field="classLoader" label="Class Loader" />
 239       <value type="BOOLEAN" field="anonymousClassLoader" label="Anonymous Class Loader" />
 240       <value type="BYTES64" field="size" label="Size" />
 241       <value type="METADATATYPE" field="metadataType" label="Metadata Type" />
 242       <value type="METASPACEOBJTYPE" field="metaspaceObjectType" label="Metaspace Object Type" />
 243     </event>
 244 
 245     <event id="MetaspaceChunkFreeListSummary" path="vm/gc/metaspace/chunk_free_list_summary" label="Metaspace Chunk Free List Summary" is_instant="true">
 246       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 247       <value type="GCWHEN" field="when" label="When" />
 248       <value type="METADATATYPE" field="metadataType" label="Metadata Type" />
 249       <value type="ULONG" field="specializedChunks" label="Specialized Chunks" />
 250       <value type="BYTES64" field="specializedChunksTotalSize" label="Specialized Chunks Total Size" />
 251       <value type="ULONG" field="smallChunks" label="Small Chunks" />
 252       <value type="BYTES64" field="smallChunksTotalSize" label="Small Chunks Total Size" />
 253       <value type="ULONG" field="mediumChunks" label="Medium Chunks" />
 254       <value type="BYTES64" field="mediumChunksTotalSize" label="Medium Chunks Total Size" />
 255       <value type="ULONG" field="humongousChunks" label="Humongous Chunks" />
 256       <value type="BYTES64" field="humongousChunksTotalSize" label="Humongous Chunks Total Size" />
 257     </event>
 258 
 259     <event id="PSHeapSummary" path="vm/gc/heap/ps_summary" label="Parallel Scavenge Heap Summary" is_instant="true">
 260       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 261       <value type="GCWHEN" field="when" label="When" />
 262 
 263       <structvalue type="VirtualSpace" field="oldSpace" label="Old Space"/>
 264       <structvalue type="ObjectSpace" field="oldObjectSpace" label="Old Object Space"/>
 265 
 266       <structvalue type="VirtualSpace" field="youngSpace" label="Young Space"/>
 267       <structvalue type="ObjectSpace" field="edenSpace" label="Eden Space"/>
 268       <structvalue type="ObjectSpace" field="fromSpace" label="From Space"/>
 269       <structvalue type="ObjectSpace" field="toSpace" label="To Space"/>
 270     </event>
 271 
 272     <event id="G1HeapSummary" path="vm/gc/heap/g1_summary" label="G1 Heap Summary" is_instant="true">
 273       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 274       <value type="GCWHEN" field="when" label="When" />
 275 
 276       <value type="BYTES64" field="edenUsedSize" label="Eden Used Size" />
 277       <value type="BYTES64" field="edenTotalSize" label="Eden Total Size" />
 278       <value type="BYTES64" field="survivorUsedSize" label="Survivor Used Size" />
 279     </event>
 280 
 281     <event id="GCGarbageCollection" path="vm/gc/collector/garbage_collection" label="Garbage Collection"
 282            description="Garbage collection performed by the JVM">
 283       <value type="UINT" field="gcId"  label="GC ID" relation="GC_ID" />
 284       <value type="GCNAME" field="name" label="Name" description="The name of the Garbage Collector" />
 285       <value type="GCCAUSE" field="cause" label="Cause" description="The reason for triggering this Garbage Collection" />
 286       <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" />
 287       <value type="TICKSPAN" field="longestPause" label="Longest Pause" description="Longest individual pause during the garbage collection" />
 288     </event>
 289 
 290     <event id="GCParallelOld" path="vm/gc/collector/parold_garbage_collection" label="Parallel Old Garbage Collection"
 291            description="Extra information specific to Parallel Old Garbage Collections">
 292       <value type="UINT" field="gcId"  label="GC ID" relation="GC_ID" />
 293       <value type="ADDRESS" field="densePrefix" label="Dense Prefix" description="The address of the dense prefix, used when compacting" />
 294     </event>
 295 
 296     <event id="GCYoungGarbageCollection" path="vm/gc/collector/young_garbage_collection" label="Young Garbage Collection"
 297            description="Extra information specific to Young Garbage Collections">
 298       <value type="UINT" field="gcId"  label="GC ID" relation="GC_ID" />
 299       <value type="UINT" field="tenuringThreshold" label="Tenuring Threshold" />
 300     </event>
 301 
 302     <event id="GCOldGarbageCollection" path="vm/gc/collector/old_garbage_collection" label="Old Garbage Collection"
 303            description="Extra information specific to Old Garbage Collections">
 304       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 305     </event>
 306 
 307     <event id="GCG1GarbageCollection" path="vm/gc/collector/g1_garbage_collection" label="G1 Garbage Collection"
 308            description="Extra information specific to G1 Garbage Collections">
 309       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 310       <value type="G1YCTYPE" field="type" label="Type" />
 311     </event>
 312 
 313     <event id="GCG1MMU" path="vm/gc/detailed/g1_mmu_info" label="G1 MMU Information" is_instant="true">
 314       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 315       <value type="DOUBLE" field="timeSlice" label="Time slice used to calculate MMU"/>
 316       <value type="DOUBLE" field="gcTime" label="Time spent on GC during last time slice"/>
 317       <value type="DOUBLE" field="maxGcTime" label="Max time allowed to be spent on GC during last time slice"/>
 318     </event>
 319 
 320     <event id="EvacuationInfo" path="vm/gc/detailed/evacuation_info" label="Evacuation Information" is_instant="true">
 321       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 322       <value type="UINT" field="cSetRegions" label="Collection Set Regions"/>
 323       <value type="BYTES64" field="cSetUsedBefore" label="Collection Set Before" description="Memory usage before GC in the collection set regions"/>
 324       <value type="BYTES64" field="cSetUsedAfter" label="Collection Set After" description="Memory usage after GC in the collection set regions"/>
 325       <value type="UINT" field="allocationRegions" label="Allocation Regions" description="Regions chosen as allocation regions during evacuation (includes survivors and old space regions)"/>
 326       <value type="BYTES64" field="allocRegionsUsedBefore" label="Alloc Regions Before" description="Memory usage before GC in allocation regions"/>
 327       <value type="BYTES64" field="allocRegionsUsedAfter" label="Alloc Regions After" description="Memory usage after GC in allocation regions"/>
 328       <value type="BYTES64" field="bytesCopied" label="Bytes Copied"/>
 329       <value type="UINT" field="regionsFreed" label="Regions Freed"/>
 330     </event>
 331 
 332     <event id="GCReferenceStatistics" path="vm/gc/reference/statistics"
 333            label="GC Reference Statistics" is_instant="true"
 334            description="Total count of processed references during GC">
 335       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 336       <value type="REFERENCETYPE" field="type" label="Type" />
 337       <value type="ULONG" field="count" label="Total Count" />
 338     </event>
 339 
 340     <struct id="CopyFailed">
 341       <value type="ULONG" field="objectCount" label="Object Count"/>
 342       <value type="BYTES64" field="firstSize" label="First Failed Object Size"/>
 343       <value type="BYTES64" field="smallestSize" label="Smallest Failed Object Size"/>
 344       <value type="BYTES64" field="totalSize" label="Total Object Size"/>
 345     </struct>
 346 
 347     <event id="ObjectCountAfterGC" path="vm/gc/detailed/object_count_after_gc" is_instant="true" label="Object Count after GC">
 348       <value type="UINT" field="gcId"  label="GC ID" relation="GC_ID" />
 349       <value type="CLASS" field="class" label="Class" />
 350       <value type="LONG" field="count" label="Count" />
 351       <value type="BYTES64" field="totalSize" label="Total Size" />
 352     </event>
 353 
 354     <struct id="G1EvacStats">
 355       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 356       <value type="BYTES64" field="allocated" label="Allocated" description="Total memory allocated by PLABs"/>
 357       <value type="BYTES64" field="wasted" label="Wasted" description="Total memory wasted within PLABs due to alignment or refill"/>
 358       <value type="BYTES64" field="used" label="Used" description="Total memory occupied by objects within PLABs"/>
 359       <value type="BYTES64" field="undoWaste" label="Undo Wasted" description="Total memory wasted due to allocation undo within PLABs"/>
 360       <value type="BYTES64" field="regionEndWaste" label="Region End Wasted" description="Total memory wasted at the end of regions due to refill"/>
 361       <value type="UINT" field="regionsRefilled" label="Region Refills" description="Total memory wasted at the end of regions due to refill"/>
 362       <value type="BYTES64" field="directAllocated" label="Allocated (direct)" description="Total memory allocated using direct allocation outside of PLABs"/>
 363       <value type="BYTES64" field="failureUsed" label="Used (failure)" description="Total memory occupied by objects in regions where evacuation failed"/>
 364       <value type="BYTES64" field="failureWaste" label="Wasted (failure)" description="Total memory left unused in regions where evacuation failed"/>
 365     </struct>
 366 
 367     <event id="GCG1EvacuationYoungStatistics" path="vm/gc/detailed/g1_evac_young_stats" label="G1 Evacuation Statistics for Young" is_instant="true"
 368            description="Memory related evacuation statistics during GC for the young generation">
 369       <structvalue type="G1EvacStats" field="stats" label="Evacuation statistics"/>
 370     </event>
 371 
 372     <event id="GCG1EvacuationOldStatistics" path="vm/gc/detailed/g1_evac_old_stats" label="G1 Evacuation Memory Statistics for Old" is_instant="true"
 373            description="Memory related evacuation statistics during GC for the old generation">
 374       <structvalue type="G1EvacStats" field="stats" label="Evacuation statistics"/>
 375     </event>
 376 
 377     <event id="GCG1BasicIHOP" path="vm/gc/detailed/g1_basic_ihop_status" label="G1 Basic IHOP statistics" is_instant="true"
 378            description="Basic statistics related to current IHOP calculation">
 379       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 380       <value type="BYTES64" field="threshold" label="Current IHOP threshold" description="Current IHOP threshold in bytes"/>
 381       <value type="BYTES64" field="thresholdPercentage" label="Current IHOP threshold in percent" description="Current IHOP threshold in percent of old gen"/>
 382       <value type="BYTES64" field="targetOccupancy" label="Target occupancy" description="Target old gen occupancy to reach at the start of mixed GC in bytes"/>
 383       <value type="BYTES64" field="currentOccupancy" label="Current occupancy" description="Current old gen occupancy in bytes"/>
 384       <value type="BYTES64" field="lastAllocationSize" label="Last mutator allocation size" description="Mutator allocation during mutator operation since last GC in bytes"/>
 385       <value type="DOUBLE" field="lastAllocationDuration" label="Last mutator operation duration" description="Time the mutator ran since last GC in seconds"/>
 386       <value type="DOUBLE" field="lastAllocationRate" label="Last mutator allocation rate" description="Allocation rate of the mutator since last GC in bytes/second"/>
 387       <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"/>
 388     </event>
 389 
 390     <event id="GCG1AdaptiveIHOP" path="vm/gc/detailed/g1_adaptive_ihop_status" label="G1 Adaptive IHOP statistics" is_instant="true"
 391            description="Statistics related to current adaptive IHOP calculation">
 392       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 393       <value type="BYTES64" field="threshold" label="Current IHOP threshold" description="Current IHOP threshold in bytes"/>
 394       <value type="BYTES64" field="thresholdPercentage" label="Current IHOP threshold in percent" description="Current IHOP threshold in percent of the internal target occupancy"/>
 395       <value type="BYTES64" field="internalTargetOccupancy" label="Target occupancy" description="Internal target old gen occupancy to reach at the start of mixed GC in bytes"/>
 396       <value type="BYTES64" field="currentOccupancy" label="Current occupancy" description="Current old gen occupancy in bytes"/>
 397       <value type="BYTES64" field="additionalBufferSize" label="Additional buffer size" description="Additional buffer size in bytes"/>
 398       <value type="DOUBLE" field="predictedAllocationRate" label="Predicted mutator allocation rate" description="Current predicted allocation rate for the mutator in bytes/second"/>
 399       <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"/>
 400       <value type="BOOLEAN" field="predictionActive" label="Prediction active" description="Indicates whether the adaptive IHOP prediction is active"/>
 401     </event>
 402 
 403     <!-- Promotion events, Supported GCs are Parallel Scavange, G1 and CMS with Parallel New. -->
 404     <event id="PromoteObjectInNewPLAB" path="vm/gc/detailed/object_promotion_in_new_PLAB" label="Promotion in new PLAB"
 405         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." 
 406            has_thread="true" has_stacktrace="false" is_instant="true">
 407       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID" description="ID of GC during which the object was promoted"/>
 408       <value type="CLASS" field="class" label="Class" description="Class of promoted object"/>
 409       <value type="BYTES64" field="objectSize" label="Object Size" description="Size of promoted object"/>
 410       <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."/>
 411       <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"/>
 412       <value type="BYTES64" field="plabSize" label="PLAB Size" description="Size of the allocated PLAB to which the object was copied"/>
 413     </event>
 414     
 415     <event id="PromoteObjectOutsidePLAB" path="vm/gc/detailed/object_promotion_outside_PLAB" label="Promotion outside PLAB"
 416         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." 
 417            has_thread="true" has_stacktrace="false" is_instant="true">
 418       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID" description="ID of GC during which the object was promoted"/>
 419       <value type="CLASS" field="class" label="Class" description="Class of promoted object"/>
 420       <value type="BYTES64" field="objectSize" label="Object Size" description="Size of promoted object"/>
 421       <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."/>
 422       <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"/>
 423     </event>
 424 
 425     <event id="PromotionFailed" path="vm/gc/detailed/promotion_failed" label="Promotion Failed" is_instant="true"
 426            description="Promotion of an object failed">
 427       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 428       <structvalue type="CopyFailed" field="data" label="Data"/>
 429       <value type="OSTHREAD" field="thread" label="Running thread"/>
 430     </event>
 431 
 432     <event id="EvacuationFailed" path="vm/gc/detailed/evacuation_failed" label="Evacuation Failed" is_instant="true"
 433            description="Evacuation 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     </event>
 437 
 438     <event id="ConcurrentModeFailure" path="vm/gc/detailed/concurrent_mode_failure" label="Concurrent Mode Failure"
 439            is_instant="true" description="Concurrent Mode failed">
 440       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 441     </event>
 442 
 443     <event id="GCPhasePause" path="vm/gc/phases/pause" label="GC Phase Pause">
 444       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 445       <value type="UTF8" field="name" label="Name" />
 446     </event>
 447 
 448     <event id="GCPhasePauseLevel1" path="vm/gc/phases/pause_level_1" label="GC Phase Pause Level 1">
 449       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 450       <value type="UTF8" field="name" label="Name" />
 451     </event>
 452 
 453     <event id="GCPhasePauseLevel2" path="vm/gc/phases/pause_level_2" label="GC Phase Pause Level 2">
 454       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 455       <value type="UTF8" field="name" label="Name" />
 456     </event>
 457 
 458     <event id="GCPhasePauseLevel3" path="vm/gc/phases/pause_level_3" label="GC Phase Pause Level 3">
 459       <value type="UINT" field="gcId" label="GC ID" relation="GC_ID"/>
 460       <value type="UTF8" field="name" label="Name" />
 461     </event>
 462 





 463     <!-- Compiler events -->
 464 
 465     <event id="Compilation" path="vm/compiler/compilation" label="Compilation"
 466          has_thread="true" is_requestable="false" is_constant="false">
 467       <value type="METHOD" field="method" label="Java Method"/>
 468       <value type="UINT" field="compileID" label="Compilation ID" relation="COMP_ID"/>
 469       <value type="USHORT" field="compileLevel" label="Compilation Level"/>
 470       <value type="BOOLEAN" field="succeded" label="Succeeded"/>
 471       <value type="BOOLEAN" field="isOsr" label="On Stack Replacement"/>
 472       <value type="BYTES" field="codeSize" label="Compiled Code Size"/>
 473       <value type="BYTES" field="inlinedBytes" label="Inlined Code Size"/>
 474     </event>
 475 
 476     <event id="CompilerPhase" path="vm/compiler/phase" label="Compiler Phase"
 477             has_thread="true" is_requestable="false" is_constant="false">
 478       <value type="COMPILERPHASETYPE" field="phase" label="Compile Phase"/>
 479       <value type="UINT" field="compileID" label="Compilation ID" relation="COMP_ID"/>
 480       <value type="USHORT" field="phaseLevel" label="Phase Level"/>
 481     </event>
 482 
 483     <event id="CompilerFailure" path="vm/compiler/failure" label="Compilation Failure"
 484             has_thread="true" is_requestable="false" is_constant="false" is_instant="true">
 485       <value type="UTF8" field="failure" label="Message"/>
 486       <value type="UINT" field="compileID" label="Compilation ID" relation="COMP_ID"/>
 487     </event>
 488 
 489     <struct id="CiMethod">
 490       <value type="UTF8" field="class" label="Class name"/>
 491       <value type="UTF8" field="name" label="Method name"/>
 492       <value type="UTF8" field="signature" label="Method signature"/>
 493     </struct>
 494 
 495     <event id="CompilerInlining" path="vm/compiler/optimization/inlining" label="Method Inlining"
 496          has_thread="true" is_instant="true">
 497       <value type="UINT" field="compileID" label="Compilation ID" relation="COMP_ID"/>
 498       <value type="METHOD" field="caller" label="Caller Method"/>
 499       <structvalue type="CiMethod" field="callee" label="Callee Method"/>
 500       <value type="BOOLEAN" field="succeeded" label="Succeeded"/>
 501       <value type="UTF8" field="message" label="Message"/>
 502       <value type="INTEGER" field="bci" label="Byte Code Index"/>
 503     </event>
 504 
 505     <!-- Code sweeper events -->
 506 
 507     <event id="SweepCodeCache" path="vm/code_sweeper/sweep" label="Sweep Code Cache"
 508        has_thread="true" is_requestable="false" is_constant="false">
 509       <value type="INTEGER" field="sweepIndex" label="Sweep Index" relation="SWEEP_ID"/>
 510       <value type="UINT" field="sweptCount" label="Methods Swept"/>
 511       <value type="UINT" field="flushedCount" label="Methods Flushed"/>
 512       <value type="UINT" field="markedCount" label="Methods Reclaimed"/>
 513       <value type="UINT" field="zombifiedCount" label="Methods Zombified"/>
 514     </event>
 515 
 516     <!-- Code cache events -->
 517 
 518     <event id="CodeCacheFull" path="vm/code_cache/full" label="Code Cache Full"
 519          has_thread="true" is_requestable="false" is_constant="false" is_instant="true">
 520       <value type="CODEBLOBTYPE" field="codeBlobType" label="Code Heap"/>
 521       <value type="ADDRESS" field="startAddress" label="Start Address"/>
 522       <value type="ADDRESS" field="commitedTopAddress" label="Commited Top"/>
 523       <value type="ADDRESS" field="reservedTopAddress" label="Reserved Top"/>
 524       <value type="INTEGER" field="entryCount" label="Entries"/>
 525       <value type="INTEGER" field="methodCount" label="Methods"/>
 526       <value type="INTEGER" field="adaptorCount" label="Adaptors"/>
 527       <value type="BYTES64" field="unallocatedCapacity" label="Unallocated"/>
 528       <value type="INTEGER" field="fullCount" label="Full Count"/>
 529     </event>
 530 
 531     <event id="ExecuteVMOperation" path="vm/runtime/execute_vm_operation" label="VM Operation"
 532         description="Execution of a VM Operation" has_thread="true">
 533       <value type="VMOPERATIONTYPE" field="operation" label="Operation" />
 534       <value type="BOOLEAN" field="safepoint" label="At Safepoint" description="If the operation occured at a safepoint."/>
 535       <value type="BOOLEAN" field="blocking" label="Caller Blocked" description="If the calling thread was blocked until the operation was complete."/>
 536       <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."/>
 537     </event>
 538 
 539     <!-- Allocation events -->
 540     <event id="AllocObjectInNewTLAB" path="java/object_alloc_in_new_TLAB" label="Allocation in new TLAB"
 541         description="Allocation in new Thread Local Allocation Buffer" has_thread="true" has_stacktrace="true" is_instant="true">
 542       <value type="CLASS" field="class" label="Class" description="Class of allocated object"/>
 543       <value type="BYTES64" field="allocationSize" label="Allocation Size"/>
 544       <value type="BYTES64" field="tlabSize" label="TLAB Size"/>
 545     </event>
 546 
 547     <event id="AllocObjectOutsideTLAB" path="java/object_alloc_outside_TLAB" label="Allocation outside TLAB"
 548         description="Allocation outside Thread Local Allocation Buffers" has_thread="true" has_stacktrace="true" is_instant="true">
 549       <value type="CLASS" field="class" label="Class" description="Class of allocated object"/>
 550       <value type="BYTES64" field="allocationSize" label="Allocation Size"/>
 551     </event>
 552   </events>
 553 
 554   <xi:include href="../../../closed/share/vm/trace/traceeventtypes.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
 555     <xi:fallback/>
 556   </xi:include>
 557 
 558   <xi:include href="../../../closed/share/vm/trace/traceevents.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
 559     <xi:fallback/>
 560   </xi:include>
 561 </trace>
--- EOF ---