public class org.graalvm.compiler.hotspot.debug.BenchmarkCounters
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.debug.BenchmarkCounters
super_class: java.lang.Object
{
public static boolean enabled;
descriptor: Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
public static final java.util.concurrent.ConcurrentHashMap<java.lang.String, org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter> counterMap;
descriptor: Ljava/util/concurrent/ConcurrentHashMap;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentHashMap<Ljava/lang/String;Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;>;
public static long[] delta;
descriptor: [J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
private static final java.lang.String CSV_FMT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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=4, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters;
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 org.graalvm.compiler.hotspot.debug.BenchmarkCounters.$assertionsDisabled:Z
3: iconst_0
putstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.enabled:Z
4: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
5: iconst_4
anewarray java.lang.String
dup
iconst_0
ldc "%s"
aastore
dup
iconst_1
ldc "%s"
aastore
dup
iconst_2
ldc "%s"
aastore
dup
iconst_3
ldc "%d"
aastore
invokestatic org.graalvm.compiler.debug.CSVUtil.buildFormatString:([Ljava/lang/String;)Ljava/lang/String;
putstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.CSV_FMT:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters;
public static int getIndexConstantIncrement(java.lang.String, java.lang.String, org.graalvm.compiler.hotspot.GraalHotSpotVMConfig, long);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;J)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokestatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.getCounter:(Ljava/lang/String;Ljava/lang/String;Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;
astore 5
start local 5 1: aload 5
getfield org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter.staticCounters:Ljava/util/concurrent/atomic/AtomicLong;
lload 3
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
pop2
2: aload 5
getfield org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter.index:I
ireturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 name Ljava/lang/String;
0 3 1 group Ljava/lang/String;
0 3 2 config Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
0 3 3 increment J
1 3 5 counter Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;
MethodParameters:
Name Flags
name
group
config
increment
public static int getIndex(java.lang.String, java.lang.String, org.graalvm.compiler.hotspot.GraalHotSpotVMConfig);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.getCounter:(Ljava/lang/String;Ljava/lang/String;Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;
astore 3
start local 3 1: aload 3
getfield org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter.index:I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 name Ljava/lang/String;
0 2 1 group Ljava/lang/String;
0 2 2 config Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
1 2 3 counter Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;
MethodParameters:
Name Flags
name
group
config
private static org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter getCounter(java.lang.String, java.lang.String, org.graalvm.compiler.hotspot.GraalHotSpotVMConfig);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.enabled:Z
ifne 2
1: new org.graalvm.compiler.debug.GraalError
dup
new java.lang.StringBuilder
dup
ldc "cannot access count index when counters are not enabled: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "#"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 3: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
aload 3
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter
astore 4
start local 4 4: aload 4
ifnonnull 14
5: ldc Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters;
dup
astore 5
monitorenter
6: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
aload 3
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter
astore 4
7: aload 4
ifnonnull 10
8: new org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter
dup
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.size:()I
aload 1
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
invokespecial org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter.<init>:(ILjava/lang/String;Ljava/util/concurrent/atomic/AtomicLong;)V
astore 4
9: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
aload 3
aload 4
invokevirtual java.util.concurrent.ConcurrentHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: StackMap locals: java.lang.String org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter java.lang.Class
StackMap stack:
aload 5
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 5
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.$assertionsDisabled:Z
ifne 15
aload 4
getfield org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter.group:Ljava/lang/String;
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "mismatching groups: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
getfield org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter.group:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " vs. "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
15: StackMap locals:
StackMap stack:
aload 2
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.jvmciCountersSize:I
istore 5
start local 5 16: aload 4
getfield org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter.index:I
iload 5
if_icmplt 18
17: new org.graalvm.compiler.debug.GraalError
dup
new java.lang.StringBuilder
dup
ldc "too many counters, reduce number of counters or increase -XX:JVMCICounterSize=... (current value: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals: int
StackMap stack:
aload 4
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 name Ljava/lang/String;
0 19 1 group Ljava/lang/String;
0 19 2 config Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
3 19 3 nameGroup Ljava/lang/String;
4 19 4 counter Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;
16 19 5 countersSize I
Exception table:
from to target type
6 11 12 any
12 13 12 any
Exceptions:
throws org.graalvm.compiler.debug.GraalError
RuntimeInvisibleAnnotations:
org.graalvm.compiler.core.common.SuppressFBWarnings(value = {"AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION"}, justification = "concurrent abstraction calls are in synchronized block")
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
org.graalvm.compiler.core.common.SuppressFBWarnings(value = {"AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION"}, justification = "concurrent abstraction calls are in synchronized block")
MethodParameters:
Name Flags
name
group
config
private static synchronized void dump(org.graalvm.compiler.options.OptionValues, java.io.PrintStream, double, long[], int);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;Ljava/io/PrintStream;D[JI)V
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=12, args_size=5
start local 0 start local 1 start local 2 start local 4 start local 5 0: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.isEmpty:()Z
ifne 20
1: aconst_null
astore 6
aconst_null
astore 7
2: aload 0
aload 1
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.size:()I
dload 2
iload 5
invokestatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Dumper.getDumper:(Lorg/graalvm/compiler/options/OptionValues;Ljava/io/PrintStream;IDI)Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Dumper;
astore 8
start local 8 3: new java.util.TreeSet
dup
invokespecial java.util.TreeSet.<init>:()V
astore 9
start local 9 4: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
aload 9
invokedynamic accept(Ljava/util/TreeSet;)Ljava/util/function/BiConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)V
org/graalvm/compiler/hotspot/debug/BenchmarkCounters.lambda$0(Ljava/util/TreeSet;Ljava/lang/String;Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;)V (6)
(Ljava/lang/String;Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;)V
invokevirtual java.util.concurrent.ConcurrentHashMap.forEach:(Ljava/util/function/BiConsumer;)V
5: aload 9
invokevirtual java.util.TreeSet.iterator:()Ljava/util/Iterator;
astore 11
goto 12
StackMap locals: org.graalvm.compiler.options.OptionValues java.io.PrintStream double long[] int java.lang.Throwable java.lang.Throwable org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Dumper java.util.TreeSet top java.util.Iterator
StackMap stack:
6: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 10
start local 10 7: aload 10
ifnull 12
8: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options.BenchmarkCountersDumpStatic:Lorg/graalvm/compiler/options/OptionKey;
aload 0
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 10
9: aload 8
iconst_1
aload 10
invokestatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.collectStaticCounters:()[J
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.entrySet:()Ljava/util/Set;
aload 0
invokevirtual org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Dumper.dumpCounters:(ZLjava/lang/String;[JLjava/util/Set;Lorg/graalvm/compiler/options/OptionValues;)V
10: StackMap locals: org.graalvm.compiler.options.OptionValues java.io.PrintStream double long[] int java.lang.Throwable java.lang.Throwable org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Dumper java.util.TreeSet java.lang.String java.util.Iterator
StackMap stack:
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options.BenchmarkCountersDumpDynamic:Lorg/graalvm/compiler/options/OptionKey;
aload 0
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 12
11: aload 8
iconst_0
aload 10
aload 4
invokestatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.collectDynamicCounters:([J)[J
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.entrySet:()Ljava/util/Set;
aload 0
invokevirtual org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Dumper.dumpCounters:(ZLjava/lang/String;[JLjava/util/Set;Lorg/graalvm/compiler/options/OptionValues;)V
end local 10 12: StackMap locals: org.graalvm.compiler.options.OptionValues java.io.PrintStream double long[] int java.lang.Throwable java.lang.Throwable org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Dumper java.util.TreeSet top java.util.Iterator
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
end local 9 13: aload 8
ifnull 19
aload 8
invokevirtual org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Dumper.close:()V
goto 19
StackMap locals: org.graalvm.compiler.options.OptionValues java.io.PrintStream double long[] int java.lang.Throwable java.lang.Throwable org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Dumper
StackMap stack: java.lang.Throwable
14: astore 6
aload 8
ifnull 15
aload 8
invokevirtual org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Dumper.close:()V
end local 8 StackMap locals:
StackMap stack:
15: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 7
aload 6
ifnonnull 17
aload 7
astore 6
goto 18
StackMap locals:
StackMap stack:
17: aload 6
aload 7
if_acmpeq 18
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
18: aload 6
athrow
19: StackMap locals:
StackMap stack:
aload 4
invokestatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.clear:([J)V
20: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 options Lorg/graalvm/compiler/options/OptionValues;
0 21 1 out Ljava/io/PrintStream;
0 21 2 seconds D
0 21 4 counters [J
0 21 5 maxRows I
3 15 8 dumper Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Dumper;
4 13 9 set Ljava/util/TreeSet<Ljava/lang/String;>;
7 12 10 group Ljava/lang/String;
Exception table:
from to target type
3 13 14 any
2 16 16 any
MethodParameters:
Name Flags
options
out
seconds
counters
maxRows
private static synchronized long[] collectDynamicCounters(long[]);
descriptor: ([J)[J
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual long[].clone:()Ljava/lang/Object;
checkcast long[]
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: long[] int
StackMap stack:
aload 1
iload 2
dup2
laload
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.delta:[J
iload 2
laload
lsub
lastore
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 1
arraylength
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 counters [J
1 7 1 array [J
2 6 2 i I
MethodParameters:
Name Flags
counters
private static synchronized long[] collectStaticCounters();
descriptor: ()[J
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=0
0: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.size:()I
newarray 11
astore 0
start local 0 1: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.counterMap:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: long[] top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter
astore 1
start local 1 3: aload 0
aload 1
getfield org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter.index:I
aload 1
getfield org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter.staticCounters:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lastore
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 array [J
3 4 1 counter Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;
private static synchronized void clear(long[]);
descriptor: ([J)V
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
putstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.delta:[J
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 counters [J
MethodParameters:
Name Flags
counters
private static boolean shouldDumpComputerReadable(org.graalvm.compiler.options.OptionValues);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options.BenchmarkCountersFile:Lorg/graalvm/compiler/options/OptionKey;
aload 0
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 1: aload 1
ifnull 3
aload 1
ldc ".csv"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 2
aload 1
ldc ".CSV"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 3
StackMap locals: java.lang.String
StackMap stack:
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 options Lorg/graalvm/compiler/options/OptionValues;
1 4 1 dumpFile Ljava/lang/String;
MethodParameters:
Name Flags
options
private static java.lang.String getName(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
aload 1
invokevirtual java.lang.String.length:()I
isub
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 nameGroup Ljava/lang/String;
0 1 1 group Ljava/lang/String;
MethodParameters:
Name Flags
nameGroup
group
private static long percentage(long, long);
descriptor: (JJ)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 2 0: lload 0
ldc 200
lmul
lconst_1
ladd
lload 2
ldiv
ldc 2
ldiv
lreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 counter J
0 1 2 sum J
MethodParameters:
Name Flags
counter
sum
public static void initialize(jdk.vm.ci.hotspot.HotSpotJVMCIRuntime, org.graalvm.compiler.options.OptionValues);
descriptor: (Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntime;Lorg/graalvm/compiler/options/OptionValues;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options.BenchmarkDynamicCounters:Lorg/graalvm/compiler/options/OptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
ifnull 16
1: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options.BenchmarkDynamicCounters:Lorg/graalvm/compiler/options/OptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.String
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 2: aload 2
arraylength
ifeq 3
aload 2
arraylength
iconst_3
irem
ifeq 4
3: StackMap locals: java.lang.String[]
StackMap stack:
new org.graalvm.compiler.debug.GraalError
dup
ldc "invalid arguments to BenchmarkDynamicCounters: (err|out),start,end,(err|out),start,end,... (~ matches multiple digits)"
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 5: goto 14
6: StackMap locals: int
StackMap stack:
aload 2
iload 3
aaload
ldc "err"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
7: new java.io.PrintStream
dup
new org.graalvm.compiler.hotspot.debug.BenchmarkCounters$1BenchmarkCountersOutputStream
dup
getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 2
iload 3
iconst_1
iadd
aaload
aload 2
iload 3
iconst_2
iadd
aaload
aload 0
aload 1
invokespecial org.graalvm.compiler.hotspot.debug.BenchmarkCounters$1BenchmarkCountersOutputStream.<init>:(Ljava/io/PrintStream;Ljava/lang/String;Ljava/lang/String;Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntime;Lorg/graalvm/compiler/options/OptionValues;)V
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
invokestatic java.lang.System.setErr:(Ljava/io/PrintStream;)V
8: goto 13
StackMap locals:
StackMap stack:
9: aload 2
iload 3
aaload
ldc "out"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
10: new java.io.PrintStream
dup
new org.graalvm.compiler.hotspot.debug.BenchmarkCounters$1BenchmarkCountersOutputStream
dup
getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 2
iload 3
iconst_1
iadd
aaload
aload 2
iload 3
iconst_2
iadd
aaload
aload 0
aload 1
invokespecial org.graalvm.compiler.hotspot.debug.BenchmarkCounters$1BenchmarkCountersOutputStream.<init>:(Ljava/io/PrintStream;Ljava/lang/String;Ljava/lang/String;Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntime;Lorg/graalvm/compiler/options/OptionValues;)V
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
invokestatic java.lang.System.setOut:(Ljava/io/PrintStream;)V
11: goto 13
12: StackMap locals:
StackMap stack:
new org.graalvm.compiler.debug.GraalError
dup
ldc "invalid arguments to BenchmarkDynamicCounters: err|out"
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
iinc 3 3
StackMap locals:
StackMap stack:
14: iload 3
aload 2
arraylength
if_icmplt 6
end local 3 15: iconst_1
putstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.enabled:Z
end local 2 16: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options.GenericDynamicCounters:Lorg/graalvm/compiler/options/OptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 18
17: iconst_1
putstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.enabled:Z
18: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options.TimedDynamicCounters:Lorg/graalvm/compiler/options/OptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
ifle 24
19: new org.graalvm.compiler.hotspot.debug.BenchmarkCounters$1
dup
aload 1
aload 0
invokespecial org.graalvm.compiler.hotspot.debug.BenchmarkCounters$1.<init>:(Lorg/graalvm/compiler/options/OptionValues;Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntime;)V
astore 2
start local 2 20: aload 2
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
21: aload 2
bipush 10
invokevirtual java.lang.Thread.setPriority:(I)V
22: aload 2
invokevirtual java.lang.Thread.start:()V
23: iconst_1
putstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.enabled:Z
end local 2 24: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.enabled:Z
ifeq 26
25: aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.collectCounters:()[J
invokestatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.clear:([J)V
26: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 jvmciRuntime Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntime;
0 27 1 options Lorg/graalvm/compiler/options/OptionValues;
2 16 2 arguments [Ljava/lang/String;
5 15 3 i I
20 24 2 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
jvmciRuntime final
options
public static void shutdown(jdk.vm.ci.hotspot.HotSpotJVMCIRuntime, org.graalvm.compiler.options.OptionValues, long);
descriptor: (Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntime;Lorg/graalvm/compiler/options/OptionValues;J)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options.GenericDynamicCounters:Lorg/graalvm/compiler/options/OptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 2
1: aload 1
aload 1
invokestatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.getPrintStream:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/io/PrintStream;
invokestatic java.lang.System.nanoTime:()J
lload 2
lsub
l2d
ldc 1.0E9
ddiv
aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.collectCounters:()[J
bipush 100
invokestatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters.dump:(Lorg/graalvm/compiler/options/OptionValues;Ljava/io/PrintStream;D[JI)V
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 jvmciRuntime Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntime;
0 3 1 options Lorg/graalvm/compiler/options/OptionValues;
0 3 2 compilerStartTime J
MethodParameters:
Name Flags
jvmciRuntime
options
compilerStartTime
private static java.io.PrintStream getPrintStream(org.graalvm.compiler.options.OptionValues);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;)Ljava/io/PrintStream;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options.BenchmarkCountersFile:Lorg/graalvm/compiler/options/OptionKey;
aload 0
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
ifnull 8
1: new java.io.File
dup
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options.BenchmarkCountersFile:Lorg/graalvm/compiler/options/OptionKey;
aload 0
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.String
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 1
start local 1 2: ldc "Writing benchmark counters to '%s'"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aastore
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;[Ljava/lang/Object;)V
3: new java.io.PrintStream
dup
aload 1
invokespecial java.io.PrintStream.<init>:(Ljava/io/File;)V
4: areturn
end local 1 5: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 6: invokestatic org.graalvm.compiler.debug.TTY.out:()Lorg/graalvm/compiler/debug/LogStream;
aload 1
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual org.graalvm.compiler.debug.LogStream.println:(Ljava/lang/String;)Lorg/graalvm/compiler/debug/LogStream;
pop
7: invokestatic org.graalvm.compiler.debug.TTY.out:()Lorg/graalvm/compiler/debug/LogStream;
ldc "Fallback to default"
invokevirtual org.graalvm.compiler.debug.LogStream.println:(Ljava/lang/String;)Lorg/graalvm/compiler/debug/LogStream;
pop
end local 1 8: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.debug.TTY.out:Ljava/io/PrintStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 options Lorg/graalvm/compiler/options/OptionValues;
2 5 1 file Ljava/io/File;
6 8 1 e Ljava/io/IOException;
Exception table:
from to target type
1 4 5 Class java.io.IOException
MethodParameters:
Name Flags
options
private static void lambda$0(java.util.TreeSet, java.lang.String, org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter);
descriptor: (Ljava/util/TreeSet;Ljava/lang/String;Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 1 start local 2 0: aload 0
aload 2
getfield org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter.group:Ljava/lang/String;
invokevirtual java.util.TreeSet.add:(Ljava/lang/Object;)Z
return
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 nameGroup Ljava/lang/String;
0 1 2 counter Lorg/graalvm/compiler/hotspot/debug/BenchmarkCounters$Counter;
}
SourceFile: "BenchmarkCounters.java"
NestMembers:
org.graalvm.compiler.hotspot.debug.BenchmarkCounters$1 org.graalvm.compiler.hotspot.debug.BenchmarkCounters$1BenchmarkCountersOutputStream org.graalvm.compiler.hotspot.debug.BenchmarkCounters$CallbackOutputStream org.graalvm.compiler.hotspot.debug.BenchmarkCounters$ComputerReadableDumper org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Dumper org.graalvm.compiler.hotspot.debug.BenchmarkCounters$HumanReadableDumper org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
org.graalvm.compiler.hotspot.debug.BenchmarkCounters$1
final BenchmarkCountersOutputStream = org.graalvm.compiler.hotspot.debug.BenchmarkCounters$1BenchmarkCountersOutputStream
private abstract CallbackOutputStream = org.graalvm.compiler.hotspot.debug.BenchmarkCounters$CallbackOutputStream of org.graalvm.compiler.hotspot.debug.BenchmarkCounters
private ComputerReadableDumper = org.graalvm.compiler.hotspot.debug.BenchmarkCounters$ComputerReadableDumper of org.graalvm.compiler.hotspot.debug.BenchmarkCounters
private Counter = org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Counter of org.graalvm.compiler.hotspot.debug.BenchmarkCounters
private abstract Dumper = org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Dumper of org.graalvm.compiler.hotspot.debug.BenchmarkCounters
private HumanReadableDumper = org.graalvm.compiler.hotspot.debug.BenchmarkCounters$HumanReadableDumper of org.graalvm.compiler.hotspot.debug.BenchmarkCounters
public Options = org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options of org.graalvm.compiler.hotspot.debug.BenchmarkCounters