1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (c) 2012, 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_decls> 40 41 <!-- 42 43 Events in the JVM are by default timed (it's more common) 44 Perhaps a little strange. Might change. 45 46 EVENTS 47 48 Declard with the 'event' tag. 49 50 <value fields> can be one or more of 51 value - a simple primitive or constant type value 52 structvalue - value is a sub-struct. This type must be previously defined 53 with 'struct' 54 All these require you to declare type, field and label of the field. They also accept 55 an optional description of the field. If the meaning of the field is not obvious 56 from the label you should provide a description. If an event however is not actually 57 meant for end-users, you should probably _not_ write descriptions at all, since you 58 might just add more concepts the user has no notion of/interest in. 59 60 Events should be modeled after what conceptual process you are expressing, _NOT_ 61 from whatever data structures you might use inside the JVM for expressing a process. 62 63 64 STRUCT 65 66 Declared with the 'struct' tag. 67 68 Declares a structure type that can be used in other events. 69 70 --> 71 72 <events> 73 <event id="ThreadStart" path="java/thread_start" label="Java Thread Start" 74 has_thread="true" is_instant="true"> 75 <value type="JAVALANGTHREAD" field="javalangthread" label="Java Thread"/> 76 </event> 77 78 <event id="ThreadEnd" path="java/thread_end" label="Java Thread End" 79 has_thread="true" is_instant="true"> 80 <value type="JAVALANGTHREAD" field="javalangthread" label="Java Thread"/> 81 </event> 82 83 <event id="ThreadSleep" path="java/thread_sleep" label="Java Thread Sleep" 84 has_thread="true" has_stacktrace="true" is_instant="false"> 85 <value type="MILLIS" field="time" label="Sleep Time"/> 86 </event> 87 88 <event id="ThreadPark" path="java/thread_park" label="Java Thread Park" 89 has_thread="true" has_stacktrace="true" is_instant="false"> 90 <value type="CLASS" field="klass" label="Class Parked On"/> 91 <value type="MILLIS" field="timeout" label="Park Timeout"/> 92 <value type="ADDRESS" field="address" label="Address of Object Parked"/> 93 </event> 94 95 <event id="JavaMonitorEnter" path="java/monitor_enter" label="Java Monitor Blocked" 96 has_thread="true" has_stacktrace="true" is_instant="false"> 97 <value type="CLASS" field="klass" label="Monitor Class"/> 98 <value type="JAVALANGTHREAD" field="previousOwner" label="Previous Monitor Owner"/> 99 <value type="ADDRESS" field="address" label="Monitor Address"/> 100 </event> 101 102 <event id="JavaMonitorWait" path="java/monitor_wait" label="Java Monitor Wait" description="Waiting on a Java monitor" 103 has_thread="true" has_stacktrace="true" is_instant="false"> 104 <value type="CLASS" field="klass" label="Monitor Class" description="Class of object waited on"/> 105 <value type="OSTHREAD" field="notifier" label="Notifier Thread" description="Notifying Thread"/> 106 <value type="MILLIS" field="timeout" label="Timeout" description="Maximum wait time"/> 107 <value type="BOOLEAN" field="timedOut" label="Timed Out" description="Wait has been timed out"/> 108 <value type="ADDRESS" field="address" label="Monitor Address" description="Address of object waited on"/> 109 </event> 110 111 <struct id="VirtualSpace"> 112 <value type="ADDRESS" field="start" label="Start Address" description="Start address of the virtual space" /> 113 <value type="ADDRESS" field="committedEnd" label="Committed End Address" description="End address of the committed memory for the virtual space" /> 114 <value type="BYTES64" field="committedSize" label="Committed Size" description="Size of the committed memory for the virtual space" /> 115 <value type="ADDRESS" field="reservedEnd" label="Reserved End Address" description="End address of the reserved memory for the virtual space" /> 116 <value type="BYTES64" field="reservedSize" label="Reserved Size" description="Size of the reserved memory for the virtual space" /> 117 </struct> 118 119 <struct id="ObjectSpace"> 120 <value type="ADDRESS" field="start" label="Start Address" description="Start address of the space" /> 121 <value type="ADDRESS" field="end" label="End Address" description="End address of the space" /> 122 <value type="BYTES64" field="used" label="Used" description="Bytes allocated by objects in the space" /> 123 <value type="BYTES64" field="size" label="Size" description="Size of the space" /> 124 </struct> 125 126 <event id="GCHeapSummary" path="vm/gc/heap/summary" label="Heap Summary" is_instant="true"> 127 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/> 128 <value type="GCWHEN" field="when" label="When" /> 129 <structvalue type="VirtualSpace" field="heapSpace" label="Heap Space"/> 130 <value type="BYTES64" field="heapUsed" label="Heap Used" description="Bytes allocated by objects in the heap"/> 131 </event> 132 133 <event id="PermGenSummary" path="vm/gc/heap/perm_gen_summary" label="Perm Gen Summary" is_instant="true"> 134 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/> 135 <value type="GCWHEN" field="when" label="When" /> 136 <structvalue type="VirtualSpace" field="permSpace" label="PermGen Space"/> 137 <structvalue type="ObjectSpace" field="objectSpace" label="Object Space"/> 138 </event> 139 140 <event id="PSHeapSummary" path="vm/gc/heap/ps_summary" label="ParallelScavengeHeap Summary" is_instant="true"> 141 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/> 142 <value type="GCWHEN" field="when" label="When" /> 143 144 <structvalue type="VirtualSpace" field="oldSpace" label="Old Space"/> 145 <structvalue type="ObjectSpace" field="oldObjectSpace" label="Old Object Space"/> 146 147 <structvalue type="VirtualSpace" field="youngSpace" label="Young Space"/> 148 <structvalue type="ObjectSpace" field="edenSpace" label="Eden Space"/> 149 <structvalue type="ObjectSpace" field="fromSpace" label="From Space"/> 150 <structvalue type="ObjectSpace" field="toSpace" label="To Space"/> 151 </event> 152 153 <event id="GCGarbageCollection" path="vm/gc/collector/garbage_collection" label="Garbage Collection" 154 description="Garbage collection performed by the JVM"> 155 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID" /> 156 <value type="GCNAME" field="name" label="Name" description="The name of the Garbage Collector" /> 157 <value type="GCCAUSE" field="cause" label="Cause" description="The reason for triggering this Garbage Collection" /> 158 <value type="RELATIVE_TICKS" field="sumOfPauses" label="Sum of Pauses" description="Sum of all the times in which Java execution was paused during the garbage collection" /> 159 <value type="RELATIVE_TICKS" field="longestPause" label="Longest Pause" description="Longest individual pause during the garbage collection" /> 160 </event> 161 162 <event id="GCParallelOld" path="vm/gc/collector/parold_garbage_collection" label="Parallel Old Garbage Collection" 163 description="Extra information specific to Parallel Old Garbage Collections"> 164 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID" /> 165 <value type="ADDRESS" field="densePrefix" label="Dense Prefix" description="The address of the dense prefix, used when compacting" /> 166 </event> 167 168 <event id="GCYoungGarbageCollection" path="vm/gc/collector/young_garbage_collection" label="Young Garbage Collection" 169 description="Extra information specific to Young Garbage Collections"> 170 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID" /> 171 </event> 172 173 <event id="GCOldGarbageCollection" path="vm/gc/collector/old_garbage_collection" label="Old Garbage Collection" 174 description="Extra information specific to Old Garbage Collections"> 175 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/> 176 </event> 177 178 <event id="GCG1GarbageCollection" path="vm/gc/collector/g1_garbage_collection" label="G1 Garbage Collection" 179 description="Extra information specific to G1 Garbage Collections"> 180 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/> 181 <value type="G1YCTYPE" field="type" label="Type" /> 182 </event> 183 184 <event id="GCReferenceStatistics" path="vm/gc/reference/statistics" 185 label="GC Reference Processing" is_instant="true" 186 description="Total count of processed references during GC"> 187 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/> 188 <value type="REFERENCETYPE" field="type" label="Type" /> 189 <value type="ULONG" field="count" label="Total Count" /> 190 </event> 191 192 <event id="PromotionFailed" path="vm/gc/detailed/promotion_failed" label="Promotion Failed" is_instant="true" 193 description="Promotion of an object failed"> 194 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/> 195 <value type="BYTES64" field="objectCount" label="Object Count"/> 196 <value type="BYTES64" field="firstSize" label="First Failed Object Size"/> 197 <value type="BYTES64" field="smallestSize" label="Smallest Failed Object Size"/> 198 <value type="BYTES64" field="totalSize" label="Total Object Size"/> 199 <value type="OSTHREAD" field="thread" label="Running thread"/> 200 </event> 201 202 <event id="GCPhasePause" path="vm/gc/phases/pause" label="GC Phase Pause"> 203 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/> 204 <value type="UTF8" field="name" label="Name" /> 205 </event> 206 207 <event id="GCPhasePauseLevel1" path="vm/gc/phases/pause_level_1" label="GC Phase Pause Level 1"> 208 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/> 209 <value type="UTF8" field="name" label="Name" /> 210 </event> 211 212 <event id="GCPhasePauseLevel2" path="vm/gc/phases/pause_level_2" label="GC Phase Pause Level 2"> 213 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/> 214 <value type="UTF8" field="name" label="Name" /> 215 </event> 216 217 <event id="GCPhasePauseLevel3" path="vm/gc/phases/pause_level_3" label="GC Phase Pause Level 3"> 218 <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/> 219 <value type="UTF8" field="name" label="Name" /> 220 </event> 221 222 <!-- Compiler events --> 223 224 <event id="Compilation" path="vm/compiler/compilation" label="Compilation" 225 has_thread="true" is_requestable="false" is_constant="false"> 226 <value type="METHOD" field="method" label="Java Method"/> 227 <value type="INTEGER" field="compileID" label="Compilation ID" relation="COMP_ID"/> 228 <value type="USHORT" field="compileLevel" label="Compilation Level"/> 229 <value type="BOOLEAN" field="succeded" label="Succeeded"/> 230 <value type="BOOLEAN" field="isOsr" label="On Stack Replacement"/> 231 <value type="BYTES" field="codeSize" label="Compiled Code Size"/> 232 <value type="BYTES" field="inlinedBytes" label="Inlined Code Size"/> 233 </event> 234 235 <event id="CompilerPhase" path="vm/compiler/phase" label="Compiler Phase" 236 has_thread="true" is_requestable="false" is_constant="false"> 237 <value type="COMPILERPHASETYPE" field="phase" label="Compile Phase"/> 238 <value type="INTEGER" field="compileID" label="Compilation ID" relation="COMP_ID"/> 239 <value type="USHORT" field="phaseLevel" label="Phase Level"/> 240 </event> 241 242 <event id="CompilerFailure" path="vm/compiler/failure" label="Compilation Failure" 243 has_thread="true" is_requestable="false" is_constant="false" is_instant="true"> 244 <value type="UTF8" field="failure" label="Message"/> 245 <value type="INTEGER" field="compileID" label="Compilation ID" relation="COMP_ID"/> 246 </event> 247 248 <!-- Code sweeper events --> 249 250 <event id="SweepCodeCache" path="vm/code_sweeper/sweep" label="Sweep Code Cache" 251 has_thread="true" is_requestable="false" is_constant="false"> 252 <value type="INTEGER" field="sweepIndex" label="Sweep Index" relation="SWEEP_ID"/> 253 <value type="USHORT" field="sweepFractionIndex" label="Fraction Index"/> 254 <value type="UINT" field="sweptCount" label="Methods Swept"/> 255 <value type="UINT" field="flushedCount" label="Methods Flushed"/> 256 <value type="UINT" field="markedCount" label="Methods Reclaim"/> 257 <value type="UINT" field="zombifiedCount" label="Methods Zombified"/> 258 </event> 259 260 <event id="CleanCodeCache" path="vm/code_sweeper/clean" label="Clean Code Cache" 261 description="Clean code cache from oldest methods" 262 has_thread="true" is_requestable="false" is_constant="false"> 263 <value type="UINT" field="disconnectedCount" label="Methods Disconnected"/> 264 <value type="UINT" field="madeNonEntrantCount" label="Methods Made Non-Entrant"/> 265 </event> 266 267 <!-- Code cache events --> 268 269 <event id="CodeCacheFull" path="vm/code_cache/full" label="Code Cache Full" 270 has_thread="true" is_requestable="false" is_constant="false" is_instant="true"> 271 <value type="ADDRESS" field="startAddress" label="Start Address"/> 272 <value type="ADDRESS" field="commitedTopAddress" label="Commited Top"/> 273 <value type="ADDRESS" field="reservedTopAddress" label="Reserved Top"/> 274 <value type="INTEGER" field="entryCount" label="Entries"/> 275 <value type="INTEGER" field="methodCount" label="Methods"/> 276 <value type="INTEGER" field="adaptorCount" label="Adaptors"/> 277 <value type="BYTES64" field="unallocatedCapacity" label="Unallocated"/> 278 <value type="BYTES64" field="largestFreeBlock" label="Largest Free Block"/> 279 <value type="INTEGER" field="fullCount" label="Full Count"/> 280 </event> 281 282 <event id="ExecuteVMOperation" path="vm/runtime/execute_vm_operation" label="VM Operation" 283 description="Execution of a VM Operation" has_thread="true"> 284 <value type="VMOPERATIONTYPE" field="operation" label="Operation" /> 285 <value type="BOOLEAN" field="safepoint" label="At Safepoint" description="If the operation occured at a safepoint."/> 286 <value type="BOOLEAN" field="blocking" label="Caller Blocked" description="If the calling thread was blocked until the operation was complete."/> 287 <value type="OSTHREAD" field="caller" label="Caller" transition="TO" description="Thread requesting operation. If non-blocking, will be set to 0 indicating thread is unknown."/> 288 </event> 289 290 </events> 291 292 <xi:include href="../../../closed/share/vm/trace/traceeventtypes.xml" xmlns:xi="http://www.w3.org/2001/XInclude"> 293 <xi:fallback/> 294 </xi:include> 295 296 <xi:include href="../../../closed/share/vm/trace/traceevents.xml" xmlns:xi="http://www.w3.org/2001/XInclude"> 297 <xi:fallback/> 298 </xi:include> 299 </trace>