class com.oracle.truffle.tools.profiler.CPUSamplerSnippets
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.truffle.tools.profiler.CPUSamplerSnippets
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 // com.oracle.truffle.tools.profiler.CPUSamplerSnippets this
0: .line 755
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // com.oracle.truffle.tools.profiler.CPUSamplerSnippets this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/tools/profiler/CPUSamplerSnippets;
public void example();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=1
start local 0 // com.oracle.truffle.tools.profiler.CPUSamplerSnippets this
0: .line 761
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
astore 1 /* context */
start local 1 // org.graalvm.polyglot.Context context
1: .line 763
aload 1 /* context */
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokestatic com.oracle.truffle.tools.profiler.CPUSampler.find:(Lorg/graalvm/polyglot/Engine;)Lcom/oracle/truffle/tools/profiler/CPUSampler;
astore 2 /* sampler */
start local 2 // com.oracle.truffle.tools.profiler.CPUSampler sampler
2: .line 764
aload 2 /* sampler */
iconst_1
invokevirtual com.oracle.truffle.tools.profiler.CPUSampler.setCollecting:(Z)V
3: .line 765
aload 1 /* context */
ldc "..."
ldc "..."
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
pop
4: .line 766
aload 2 /* sampler */
iconst_0
invokevirtual com.oracle.truffle.tools.profiler.CPUSampler.setCollecting:(Z)V
5: .line 767
aload 2 /* sampler */
invokevirtual com.oracle.truffle.tools.profiler.CPUSampler.close:()V
6: .line 770
aload 2 /* sampler */
invokevirtual com.oracle.truffle.tools.profiler.CPUSampler.getThreadToNodesMap:()Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 13
StackMap locals: com.oracle.truffle.tools.profiler.CPUSamplerSnippets org.graalvm.polyglot.Context com.oracle.truffle.tools.profiler.CPUSampler top java.util.Iterator
StackMap stack:
7: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Collection
astore 3 /* nodes */
start local 3 // java.util.Collection nodes
8: .line 771
aload 3 /* nodes */
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 12
StackMap locals: com.oracle.truffle.tools.profiler.CPUSamplerSnippets org.graalvm.polyglot.Context com.oracle.truffle.tools.profiler.CPUSampler java.util.Collection java.util.Iterator top java.util.Iterator
StackMap stack:
9: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.oracle.truffle.tools.profiler.ProfilerNode
astore 5 /* node */
start local 5 // com.oracle.truffle.tools.profiler.ProfilerNode node
10: .line 772
aload 5 /* node */
invokevirtual com.oracle.truffle.tools.profiler.ProfilerNode.getRootName:()Ljava/lang/String;
pop
11: .line 773
aload 5 /* node */
invokevirtual com.oracle.truffle.tools.profiler.ProfilerNode.getPayload:()Ljava/lang/Object;
checkcast com.oracle.truffle.tools.profiler.CPUSampler$Payload
invokevirtual com.oracle.truffle.tools.profiler.CPUSampler$Payload.getSelfHitCount:()I
pop
end local 5 // com.oracle.truffle.tools.profiler.ProfilerNode node
12: .line 771
StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
end local 3 // java.util.Collection nodes
13: .line 769
StackMap locals: com.oracle.truffle.tools.profiler.CPUSamplerSnippets org.graalvm.polyglot.Context com.oracle.truffle.tools.profiler.CPUSampler top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
14: .line 779
return
end local 2 // com.oracle.truffle.tools.profiler.CPUSampler sampler
end local 1 // org.graalvm.polyglot.Context context
end local 0 // com.oracle.truffle.tools.profiler.CPUSamplerSnippets this
LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/oracle/truffle/tools/profiler/CPUSamplerSnippets;
1 15 1 context Lorg/graalvm/polyglot/Context;
2 15 2 sampler Lcom/oracle/truffle/tools/profiler/CPUSampler;
8 13 3 nodes Ljava/util/Collection<Lcom/oracle/truffle/tools/profiler/ProfilerNode<Lcom/oracle/truffle/tools/profiler/CPUSampler$Payload;>;>;
10 12 5 node Lcom/oracle/truffle/tools/profiler/ProfilerNode<Lcom/oracle/truffle/tools/profiler/CPUSampler$Payload;>;
}
SourceFile: "CPUSampler.java"
InnerClasses:
public final Payload = com.oracle.truffle.tools.profiler.CPUSampler$Payload of com.oracle.truffle.tools.profiler.CPUSampler