trace.xml revision 4177
4141N/A<?xml version="1.0" encoding="utf-8"?>
4141N/A<!--
4141N/A Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
4141N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4141N/A
4141N/A This code is free software; you can redistribute it and/or modify it
4141N/A under the terms of the GNU General Public License version 2 only, as
4141N/A published by the Free Software Foundation.
4141N/A
4141N/A This code is distributed in the hope that it will be useful, but WITHOUT
4141N/A ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4141N/A FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4141N/A version 2 for more details (a copy is included in the LICENSE file that
4141N/A accompanied this code).
4141N/A
4141N/A You should have received a copy of the GNU General Public License version
4141N/A 2 along with this work; if not, write to the Free Software Foundation,
4141N/A Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4141N/A
4141N/A Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4141N/A or visit www.oracle.com if you need additional information or have any
4141N/A questions.
4141N/A
4141N/A-->
4141N/A
4141N/A
4141N/A<!DOCTYPE trace SYSTEM "trace.dtd" [
4141N/A<!ENTITY % xinclude SYSTEM "xinclude.mod">
4141N/A%xinclude;
4141N/A]>
4141N/A
4141N/A<trace>
4141N/A <xi:include href="tracetypes.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
4141N/A
4141N/A <relation_decls>
4141N/A <relation_decl id="GC_ID" uri="vm/gc/id"/>
4141N/A <relation_decl id="COMP_ID" uri="vm/compiler/id"/>
4141N/A <relation_decl id="SWEEP_ID" uri="vm/code_sweeper/id"/>
4141N/A </relation_decls>
4141N/A
4141N/A<!--
4141N/A
4141N/AEvents in the JVM are by default timed (it's more common)
4141N/APerhaps a little strange. Might change.
4141N/A
4141N/AEVENTS
4141N/A
4141N/ADeclard with the 'event' tag.
4141N/A
4141N/A<value fields> can be one or more of
4141N/A value - a simple primitive or constant type value
4141N/A structvalue - value is a sub-struct. This type must be previously defined
4141N/A with 'struct'
4141N/AAll these require you to declare type, field and label of the field. They also accept
4141N/Aan optional description of the field. If the meaning of the field is not obvious
4141N/Afrom the label you should provide a description. If an event however is not actually
4141N/Ameant for end-users, you should probably _not_ write descriptions at all, since you
4141N/Amight just add more concepts the user has no notion of/interest in.
4141N/A
4141N/AEvents should be modeled after what conceptual process you are expressing, _NOT_
4141N/Afrom whatever data structures you might use inside the JVM for expressing a process.
4141N/A
4141N/A
4141N/ASTRUCT
4141N/A
4141N/ADeclared with the 'struct' tag.
4141N/A
4141N/ADeclares a structure type that can be used in other events.
4141N/A
4141N/A-->
4141N/A
4141N/A <events>
4141N/A <event id="ThreadStart" path="java/thread_start" label="Java Thread Start"
4141N/A has_thread="true" is_instant="true">
4141N/A <value type="JAVALANGTHREAD" field="javalangthread" label="Java Thread"/>
4141N/A </event>
4141N/A
4141N/A <event id="ThreadEnd" path="java/thread_end" label="Java Thread End"
4141N/A has_thread="true" is_instant="true">
4141N/A <value type="JAVALANGTHREAD" field="javalangthread" label="Java Thread"/>
4141N/A </event>
4141N/A
4141N/A <event id="ThreadSleep" path="java/thread_sleep" label="Java Thread Sleep"
4141N/A has_thread="true" has_stacktrace="true" is_instant="false">
4141N/A <value type="MILLIS" field="time" label="Sleep Time"/>
4141N/A </event>
4141N/A
4141N/A <event id="ThreadPark" path="java/thread_park" label="Java Thread Park"
4141N/A has_thread="true" has_stacktrace="true" is_instant="false">
4141N/A <value type="CLASS" field="klass" label="Class Parked On"/>
4141N/A <value type="MILLIS" field="timeout" label="Park Timeout"/>
4141N/A <value type="ADDRESS" field="address" label="Address of Object Parked"/>
4141N/A </event>
4141N/A
4141N/A <event id="JavaMonitorEnter" path="java/monitor_enter" label="Java Monitor Blocked"
4141N/A has_thread="true" has_stacktrace="true" is_instant="false">
4141N/A <value type="CLASS" field="klass" label="Monitor Class"/>
4141N/A <value type="JAVALANGTHREAD" field="previousOwner" label="Previous Monitor Owner"/>
4141N/A <value type="ADDRESS" field="address" label="Monitor Address"/>
4141N/A </event>
4141N/A
4141N/A <event id="JavaMonitorWait" path="java/monitor_wait" label="Java Monitor Wait" description="Waiting on a Java monitor"
4141N/A has_thread="true" has_stacktrace="true" is_instant="false">
4141N/A <value type="CLASS" field="klass" label="Monitor Class" description="Class of object waited on"/>
4141N/A <value type="OSTHREAD" field="notifier" label="Notifier Thread" description="Notifying Thread"/>
4141N/A <value type="MILLIS" field="timeout" label="Timeout" description="Maximum wait time"/>
4141N/A <value type="BOOLEAN" field="timedOut" label="Timed Out" description="Wait has been timed out"/>
4141N/A <value type="ADDRESS" field="address" label="Monitor Address" description="Address of object waited on"/>
4141N/A </event>
4141N/A
4141N/A <struct id="VirtualSpace">
4141N/A <value type="ADDRESS" field="start" label="Start Address" description="Start address of the virtual space" />
4141N/A <value type="ADDRESS" field="committedEnd" label="Committed End Address" description="End address of the committed memory for the virtual space" />
4141N/A <value type="BYTES64" field="committedSize" label="Committed Size" description="Size of the committed memory for the virtual space" />
4141N/A <value type="ADDRESS" field="reservedEnd" label="Reserved End Address" description="End address of the reserved memory for the virtual space" />
4141N/A <value type="BYTES64" field="reservedSize" label="Reserved Size" description="Size of the reserved memory for the virtual space" />
4141N/A </struct>
4141N/A
4141N/A <struct id="ObjectSpace">
4141N/A <value type="ADDRESS" field="start" label="Start Address" description="Start address of the space" />
4141N/A <value type="ADDRESS" field="end" label="End Address" description="End address of the space" />
4141N/A <value type="BYTES64" field="used" label="Used" description="Bytes allocated by objects in the space" />
4141N/A <value type="BYTES64" field="size" label="Size" description="Size of the space" />
4141N/A </struct>
4141N/A
4141N/A <event id="GCHeapSummary" path="vm/gc/heap/summary" label="Heap Summary" is_instant="true">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/>
4141N/A <value type="GCWHEN" field="when" label="When" />
4141N/A <structvalue type="VirtualSpace" field="heapSpace" label="Heap Space"/>
4141N/A <value type="BYTES64" field="heapUsed" label="Heap Used" description="Bytes allocated by objects in the heap"/>
4141N/A </event>
4141N/A
4141N/A <event id="PermGenSummary" path="vm/gc/heap/perm_gen_summary" label="Perm Gen Summary" is_instant="true">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/>
4141N/A <value type="GCWHEN" field="when" label="When" />
4141N/A <structvalue type="VirtualSpace" field="permSpace" label="PermGen Space"/>
4141N/A <structvalue type="ObjectSpace" field="objectSpace" label="Object Space"/>
4141N/A </event>
4141N/A
4141N/A <event id="PSHeapSummary" path="vm/gc/heap/ps_summary" label="ParallelScavengeHeap Summary" is_instant="true">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/>
4141N/A <value type="GCWHEN" field="when" label="When" />
4141N/A
4141N/A <structvalue type="VirtualSpace" field="oldSpace" label="Old Space"/>
4141N/A <structvalue type="ObjectSpace" field="oldObjectSpace" label="Old Object Space"/>
4141N/A
4141N/A <structvalue type="VirtualSpace" field="youngSpace" label="Young Space"/>
4141N/A <structvalue type="ObjectSpace" field="edenSpace" label="Eden Space"/>
4141N/A <structvalue type="ObjectSpace" field="fromSpace" label="From Space"/>
4141N/A <structvalue type="ObjectSpace" field="toSpace" label="To Space"/>
4141N/A </event>
4141N/A
4141N/A <event id="GCGarbageCollection" path="vm/gc/collector/garbage_collection" label="Garbage Collection"
4141N/A description="Garbage collection performed by the JVM">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID" />
4141N/A <value type="GCNAME" field="name" label="Name" description="The name of the Garbage Collector" />
4141N/A <value type="GCCAUSE" field="cause" label="Cause" description="The reason for triggering this Garbage Collection" />
4177N/A <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" />
4177N/A <value type="RELATIVE_TICKS" field="longestPause" label="Longest Pause" description="Longest individual pause during the garbage collection" />
4141N/A </event>
4141N/A
4141N/A <event id="GCParallelOld" path="vm/gc/collector/parold_garbage_collection" label="Parallel Old Garbage Collection"
4141N/A description="Extra information specific to Parallel Old Garbage Collections">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID" />
4141N/A <value type="ADDRESS" field="densePrefix" label="Dense Prefix" description="The address of the dense prefix, used when compacting" />
4141N/A </event>
4141N/A
4141N/A <event id="GCYoungGarbageCollection" path="vm/gc/collector/young_garbage_collection" label="Young Garbage Collection"
4141N/A description="Extra information specific to Young Garbage Collections">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID" />
4141N/A <!-- This information can also be found by looking for PromotionFailed events. It's here for convenience. -->
4141N/A <value type="BOOLEAN" field="promotionFailed" label="Promotion Failed" description="Tells if we failed to promote some objects to the old gen" />
4141N/A </event>
4141N/A
4141N/A <event id="GCOldGarbageCollection" path="vm/gc/collector/old_garbage_collection" label="Old Garbage Collection"
4141N/A description="Extra information specific to Old Garbage Collections">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/>
4141N/A </event>
4141N/A
4141N/A <event id="GCG1GarbageCollection" path="vm/gc/collector/g1_garbage_collection" label="G1 Garbage Collection"
4141N/A description="Extra information specific to G1 Garbage Collections">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/>
4141N/A <value type="G1YCTYPE" field="type" label="Type" />
4141N/A </event>
4141N/A
4141N/A <event id="GCReferenceProcessing" path="vm/gc/reference/statistics"
4141N/A label="GC Reference Processing" is_instant="true"
4141N/A description="Total count of processed references during GC">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/>
4141N/A <value type="REFERENCETYPE" field="type" label="Type" />
4141N/A <value type="ULONG" field="count" label="Total Count" />
4141N/A </event>
4141N/A
4141N/A <event id="PromotionFailed" path="vm/gc/detailed/promotion_failed" label="Promotion Failed" is_instant="true"
4141N/A description="Promotion of an object failed">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/>
4141N/A <value type="BYTES64" field="objectCount" label="Object Count"/>
4141N/A <value type="BYTES64" field="totalSize" label="Total Object Size"/>
4141N/A </event>
4141N/A
4141N/A <event id="GCPhasePause" path="vm/gc/phases/pause" label="GC Phase Pause">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/>
4141N/A <value type="UTF8" field="name" label="Name" />
4141N/A </event>
4141N/A
4141N/A <event id="GCPhasePauseLevel1" path="vm/gc/phases/pause_level_1" label="GC Phase Pause Level 1">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/>
4141N/A <value type="UTF8" field="name" label="Name" />
4141N/A </event>
4141N/A
4141N/A <event id="GCPhasePauseLevel2" path="vm/gc/phases/pause_level_2" label="GC Phase Pause Level 2">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/>
4141N/A <value type="UTF8" field="name" label="Name" />
4141N/A </event>
4141N/A
4141N/A <event id="GCPhasePauseLevel3" path="vm/gc/phases/pause_level_3" label="GC Phase Pause Level 3">
4141N/A <value type="ULONG" field="gcId" label="GC ID" relation="GC_ID"/>
4141N/A <value type="UTF8" field="name" label="Name" />
4141N/A </event>
4141N/A
4141N/A <!-- Compiler events -->
4141N/A
4141N/A <event id="Compilation" path="vm/compiler/compilation" label="Compilation"
4141N/A has_thread="true" is_requestable="false" is_constant="false">
4141N/A <value type="METHOD" field="method" label="Java Method"/>
4141N/A <value type="INTEGER" field="compileID" label="Compilation ID" relation="COMP_ID"/>
4141N/A <value type="USHORT" field="compileLevel" label="Compilation Level"/>
4141N/A <value type="BOOLEAN" field="succeded" label="Succeeded"/>
4141N/A <value type="BOOLEAN" field="isOsr" label="On Stack Replacement"/>
4141N/A <value type="BYTES" field="codeSize" label="Compiled Code Size"/>
4141N/A <value type="BYTES" field="inlinedBytes" label="Inlined Code Size"/>
4141N/A </event>
4141N/A
4141N/A <event id="CompilerPhase" path="vm/compiler/phase" label="Compiler Phase"
4141N/A has_thread="true" is_requestable="false" is_constant="false">
4141N/A <value type="COMPILERPHASETYPE" field="phase" label="Compile Phase"/>
4141N/A <value type="INTEGER" field="compileID" label="Compilation ID" relation="COMP_ID"/>
4141N/A <value type="USHORT" field="phaseLevel" label="Phase Level"/>
4141N/A </event>
4141N/A
4141N/A <event id="CompilerFailure" path="vm/compiler/failure" label="Compilation Failure"
4141N/A has_thread="true" is_requestable="false" is_constant="false" is_instant="true">
4141N/A <value type="UTF8" field="failure" label="Message"/>
4141N/A <value type="INTEGER" field="compileID" label="Compilation ID" relation="COMP_ID"/>
4141N/A </event>
4141N/A
4141N/A <!-- Code sweeper events -->
4141N/A
4141N/A <event id="SweepCodeCache" path="vm/code_sweeper/sweep" label="Sweep Code Cache"
4141N/A has_thread="true" is_requestable="false" is_constant="false">
4141N/A <value type="INTEGER" field="sweepIndex" label="Sweep Index" relation="SWEEP_ID"/>
4141N/A <value type="USHORT" field="sweepFractionIndex" label="Fraction Index"/>
4141N/A <value type="UINT" field="sweptCount" label="Methods Swept"/>
4141N/A <value type="UINT" field="flushedCount" label="Methods Flushed"/>
4141N/A <value type="UINT" field="markedCount" label="Methods Reclaim"/>
4141N/A <value type="UINT" field="zombifiedCount" label="Methods Zombified"/>
4141N/A </event>
4141N/A
4141N/A <event id="CleanCodeCache" path="vm/code_sweeper/clean" label="Clean Code Cache"
4141N/A description="Clean code cache from oldest methods"
4141N/A has_thread="true" is_requestable="false" is_constant="false">
4141N/A <value type="UINT" field="disconnectedCount" label="Methods Disconnected"/>
4141N/A <value type="UINT" field="madeNonEntrantCount" label="Methods Made Non-Entrant"/>
4141N/A </event>
4141N/A
4141N/A <!-- Code cache events -->
4141N/A
4141N/A <event id="CodeCacheFull" path="vm/code_cache/full" label="Code Cache Full"
4141N/A has_thread="true" is_requestable="false" is_constant="false" is_instant="true">
4141N/A <value type="ADDRESS" field="startAddress" label="Start Address"/>
4141N/A <value type="ADDRESS" field="commitedTopAddress" label="Commited Top"/>
4141N/A <value type="ADDRESS" field="reservedTopAddress" label="Reserved Top"/>
4141N/A <value type="INTEGER" field="entryCount" label="Entries"/>
4141N/A <value type="INTEGER" field="methodCount" label="Methods"/>
4141N/A <value type="INTEGER" field="adaptorCount" label="Adaptors"/>
4141N/A <value type="BYTES64" field="unallocatedCapacity" label="Unallocated"/>
4141N/A <value type="BYTES64" field="largestFreeBlock" label="Largest Free Block"/>
4141N/A <value type="INTEGER" field="fullCount" label="Full Count"/>
4141N/A </event>
4141N/A
4141N/A <event id="ExecuteVMOperation" path="vm/runtime/execute_vm_operation" label="VM Operation"
4141N/A description="Execution of a VM Operation" has_thread="true">
4141N/A <value type="VMOPERATIONTYPE" field="operation" label="Operation" />
4141N/A <value type="BOOLEAN" field="safepoint" label="At Safepoint" description="If the operation occured at a safepoint."/>
4141N/A <value type="BOOLEAN" field="blocking" label="Caller Blocked" description="If the calling thread was blocked until the operation was complete."/>
4141N/A <value type="OSTHREAD" field="caller" label="Caller" transition="TO"/>
4141N/A </event>
4141N/A
4141N/A </events>
4141N/A
4154N/A <xi:include href="/closed/share/vm/trace/traceeventtypes.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
4154N/A <xi:fallback/>
4154N/A </xi:include>
4154N/A
4141N/A <xi:include href="/closed/share/vm/trace/traceevents.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
4141N/A <xi:fallback/>
4141N/A </xi:include>
4141N/A</trace>