1 /* 2 * Copyright (c) 2014, 2015, Dynatrace and/or its affiliates. All rights reserved. 3 * 4 * This file is part of the Lock Contention Tracing Subsystem for the HotSpot 5 * Virtual Machine, which is developed at Christian Doppler Laboratory on 6 * Monitoring and Evolution of Very-Large-Scale Software Systems. Please 7 * contact us at <http://mevss.jku.at/> if you need additional information 8 * or have any questions. 9 * 10 * This code is free software; you can redistribute it and/or modify it 11 * under the terms of the GNU General Public License version 2 only, as 12 * published by the Free Software Foundation. 13 * 14 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 * version 2 for more details (a copy is included in the LICENSE file that 18 * accompanied this code). 19 * 20 * You should have received a copy of the GNU General Public License version 21 * 2 along with this work. If not, see <http://www.gnu.org/licenses/>. 22 * 23 */ 24 package sun.evtracing.parser; 25 26 public enum TraceEventType { 27 ThreadStart, 28 ThreadNameChange, 29 ThreadStateChange, 30 ThreadInterrupt, 31 ThreadExit, 32 ThreadParkBegin, 33 ThreadParkEnd, 34 ThreadUnpark, 35 MonitorInflate, 36 MonitorDeflate, 37 MonitorContendedEnter, 38 MonitorContendedEntered, 39 MonitorContendedExited, 40 MonitorDummy, 41 ClassMetadata, 42 MethodMetadata, 43 StackMetadata, 44 IdenticalStacksMetadata, 45 ClassLoaderUnload, 46 SafepointBegin, 47 SafepointEnd, 48 VMEnd, 49 MetadataReset, 50 Group, 51 NativeMonitorInfo, 52 NativeMonitorContendedLock, 53 NativeMonitorContendedLocked, 54 NativeMonitorContendedUnlocked, 55 NativeMonitorDestroy, 56 NativeMonitorDummy, 57 StackMetadataExtended, 58 NativeSymbolMetadata, 59 Marker, 60 ; 61 62 private static final TraceEventType[] VALUES = values(); 63 64 public static TraceEventType fromOrdinal(int value) { 65 return VALUES[value]; 66 } 67 }