public final class com.oracle.truffle.tools.profiler.CPUTracer implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.tools.profiler.CPUTracer
super_class: java.lang.Object
{
private static final com.oracle.truffle.api.instrumentation.SourceSectionFilter DEFAULT_FILTER;
descriptor: Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final com.oracle.truffle.api.instrumentation.TruffleInstrument$Env env;
descriptor: Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean collecting;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private com.oracle.truffle.api.instrumentation.SourceSectionFilter filter;
descriptor: Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
flags: (0x0002) ACC_PRIVATE
private com.oracle.truffle.api.instrumentation.EventBinding<?> activeBinding;
descriptor: Lcom/oracle/truffle/api/instrumentation/EventBinding;
flags: (0x0002) ACC_PRIVATE
Signature: Lcom/oracle/truffle/api/instrumentation/EventBinding<*>;
private final java.util.Map<com.oracle.truffle.api.source.SourceSection, com.oracle.truffle.tools.profiler.CPUTracer$Payload> payloadMap;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lcom/oracle/truffle/api/source/SourceSection;Lcom/oracle/truffle/tools/profiler/CPUTracer$Payload;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: ldc Lcom/oracle/truffle/tools/profiler/CPUTracer;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.oracle.truffle.tools.profiler.CPUTracer.$assertionsDisabled:Z
3: invokestatic com.oracle.truffle.api.instrumentation.SourceSectionFilter.newBuilder:()Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter$Builder;
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$RootTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder.tagIs:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder.build:()Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
putstatic com.oracle.truffle.tools.profiler.CPUTracer.DEFAULT_FILTER:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
4: new com.oracle.truffle.tools.profiler.CPUTracer$1
dup
invokespecial com.oracle.truffle.tools.profiler.CPUTracer$1.<init>:()V
invokestatic com.oracle.truffle.tools.profiler.impl.CPUTracerInstrument.setFactory:(Lcom/oracle/truffle/tools/profiler/impl/ProfilerToolFactory;)V
5: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.oracle.truffle.api.instrumentation.TruffleInstrument$Env);
descriptor: (Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield com.oracle.truffle.tools.profiler.CPUTracer.closed:Z
2: aload 0
iconst_0
putfield com.oracle.truffle.tools.profiler.CPUTracer.collecting:Z
3: aload 0
aconst_null
putfield com.oracle.truffle.tools.profiler.CPUTracer.filter:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
4: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield com.oracle.truffle.tools.profiler.CPUTracer.payloadMap:Ljava/util/Map;
5: aload 0
aload 1
putfield com.oracle.truffle.tools.profiler.CPUTracer.env:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/tools/profiler/CPUTracer;
0 7 1 env Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
MethodParameters:
Name Flags
env
public static com.oracle.truffle.tools.profiler.CPUTracer find(org.graalvm.polyglot.Engine);
descriptor: (Lorg/graalvm/polyglot/Engine;)Lcom/oracle/truffle/tools/profiler/CPUTracer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.oracle.truffle.tools.profiler.impl.CPUTracerInstrument.getTracer:(Lorg/graalvm/polyglot/Engine;)Lcom/oracle/truffle/tools/profiler/CPUTracer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 engine Lorg/graalvm/polyglot/Engine;
MethodParameters:
Name Flags
engine
public synchronized void setCollecting(boolean);
descriptor: (Z)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.closed:Z
ifeq 2
1: new com.oracle.truffle.tools.profiler.ProfilerException
dup
ldc "CPUTracer is already closed."
invokespecial com.oracle.truffle.tools.profiler.ProfilerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.collecting:Z
iload 1
if_icmpeq 5
3: aload 0
iload 1
putfield com.oracle.truffle.tools.profiler.CPUTracer.collecting:Z
4: aload 0
invokevirtual com.oracle.truffle.tools.profiler.CPUTracer.resetTracer:()V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/truffle/tools/profiler/CPUTracer;
0 6 1 collecting Z
MethodParameters:
Name Flags
collecting
public synchronized boolean isCollecting();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.collecting:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/tools/profiler/CPUTracer;
public synchronized void setFilter(com.oracle.truffle.api.instrumentation.SourceSectionFilter);
descriptor: (Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.tools.profiler.CPUTracer.verifyConfigAllowed:()V
1: aload 0
aload 1
putfield com.oracle.truffle.tools.profiler.CPUTracer.filter:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/tools/profiler/CPUTracer;
0 3 1 filter Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
MethodParameters:
Name Flags
filter
public synchronized com.oracle.truffle.api.instrumentation.SourceSectionFilter getFilter();
descriptor: ()Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.filter:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/tools/profiler/CPUTracer;
public java.util.Collection<com.oracle.truffle.tools.profiler.CPUTracer$Payload> getPayloads();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.payloadMap:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokestatic java.util.Collections.unmodifiableCollection:(Ljava/util/Collection;)Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/tools/profiler/CPUTracer;
Signature: ()Ljava/util/Collection<Lcom/oracle/truffle/tools/profiler/CPUTracer$Payload;>;
public void clearData();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.payloadMap:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/tools/profiler/CPUTracer;
private com.oracle.truffle.tools.profiler.CPUTracer$Payload getCounter(com.oracle.truffle.api.instrumentation.EventContext);
descriptor: (Lcom/oracle/truffle/api/instrumentation/EventContext;)Lcom/oracle/truffle/tools/profiler/CPUTracer$Payload;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.oracle.truffle.api.instrumentation.EventContext.getInstrumentedSourceSection:()Lcom/oracle/truffle/api/source/SourceSection;
astore 2
start local 2 1: aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.payloadMap:Ljava/util/Map;
aload 2
new com.oracle.truffle.tools.profiler.CPUTracer$2
dup
aload 0
aload 1
invokespecial com.oracle.truffle.tools.profiler.CPUTracer$2.<init>:(Lcom/oracle/truffle/tools/profiler/CPUTracer;Lcom/oracle/truffle/api/instrumentation/EventContext;)V
invokeinterface java.util.Map.computeIfAbsent:(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
checkcast com.oracle.truffle.tools.profiler.CPUTracer$Payload
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/tools/profiler/CPUTracer;
0 2 1 context Lcom/oracle/truffle/api/instrumentation/EventContext;
1 2 2 sourceSection Lcom/oracle/truffle/api/source/SourceSection;
MethodParameters:
Name Flags
context
private synchronized void verifyConfigAllowed();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic com.oracle.truffle.tools.profiler.CPUTracer.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.closed:Z
ifeq 3
2: new com.oracle.truffle.tools.profiler.ProfilerException
dup
ldc "CPUTracer is already closed."
invokespecial com.oracle.truffle.tools.profiler.ProfilerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.collecting:Z
ifeq 5
4: new com.oracle.truffle.tools.profiler.ProfilerException
dup
ldc "Cannot change tracer configuration while collecting. Call setCollecting(false) to disable collection first."
invokespecial com.oracle.truffle.tools.profiler.ProfilerException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/truffle/tools/profiler/CPUTracer;
private synchronized void resetTracer();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=6, locals=2, args_size=1
start local 0 0: getstatic com.oracle.truffle.tools.profiler.CPUTracer.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.activeBinding:Lcom/oracle/truffle/api/instrumentation/EventBinding;
ifnull 4
2: aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.activeBinding:Lcom/oracle/truffle/api/instrumentation/EventBinding;
invokevirtual com.oracle.truffle.api.instrumentation.EventBinding.dispose:()V
3: aload 0
aconst_null
putfield com.oracle.truffle.tools.profiler.CPUTracer.activeBinding:Lcom/oracle/truffle/api/instrumentation/EventBinding;
4: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.collecting:Z
ifeq 5
aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.closed:Z
ifeq 6
5: StackMap locals:
StackMap stack:
return
6: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.filter:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
astore 1
start local 1 7: aload 1
ifnonnull 9
8: getstatic com.oracle.truffle.tools.profiler.CPUTracer.DEFAULT_FILTER:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
astore 1
9: StackMap locals: com.oracle.truffle.api.instrumentation.SourceSectionFilter
StackMap stack:
aload 0
aload 0
getfield com.oracle.truffle.tools.profiler.CPUTracer.env:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
aload 1
new com.oracle.truffle.tools.profiler.CPUTracer$3
dup
aload 0
invokespecial com.oracle.truffle.tools.profiler.CPUTracer$3.<init>:(Lcom/oracle/truffle/tools/profiler/CPUTracer;)V
invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachExecutionEventFactory:(Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/ExecutionEventNodeFactory;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
putfield com.oracle.truffle.tools.profiler.CPUTracer.activeBinding:Lcom/oracle/truffle/api/instrumentation/EventBinding;
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/truffle/tools/profiler/CPUTracer;
7 11 1 f Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
public synchronized void close();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield com.oracle.truffle.tools.profiler.CPUTracer.closed:Z
1: aload 0
invokevirtual com.oracle.truffle.tools.profiler.CPUTracer.clearData:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/tools/profiler/CPUTracer;
}
SourceFile: "CPUTracer.java"
NestMembers:
com.oracle.truffle.tools.profiler.CPUTracer$1 com.oracle.truffle.tools.profiler.CPUTracer$2 com.oracle.truffle.tools.profiler.CPUTracer$3 com.oracle.truffle.tools.profiler.CPUTracer$CounterNode com.oracle.truffle.tools.profiler.CPUTracer$Payload
InnerClasses:
public final Builder = com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder of com.oracle.truffle.api.instrumentation.SourceSectionFilter
public final RootTag = com.oracle.truffle.api.instrumentation.StandardTags$RootTag of com.oracle.truffle.api.instrumentation.StandardTags
public final Env = com.oracle.truffle.api.instrumentation.TruffleInstrument$Env of com.oracle.truffle.api.instrumentation.TruffleInstrument
com.oracle.truffle.tools.profiler.CPUTracer$1
com.oracle.truffle.tools.profiler.CPUTracer$2
com.oracle.truffle.tools.profiler.CPUTracer$3
private CounterNode = com.oracle.truffle.tools.profiler.CPUTracer$CounterNode of com.oracle.truffle.tools.profiler.CPUTracer
public final Payload = com.oracle.truffle.tools.profiler.CPUTracer$Payload of com.oracle.truffle.tools.profiler.CPUTracer