public class org.graalvm.compiler.debug.GlobalMetrics
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.debug.GlobalMetrics
super_class: java.lang.Object
{
long[] values;
descriptor: [J
flags: (0x0000)
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/debug/GlobalMetrics;
public synchronized void add(org.graalvm.compiler.debug.DebugContext);
descriptor: (Lorg/graalvm/compiler/debug/DebugContext;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield org.graalvm.compiler.debug.GlobalMetrics.values:[J
invokevirtual org.graalvm.compiler.debug.DebugContext.addValuesTo:([J)[J
putfield org.graalvm.compiler.debug.GlobalMetrics.values:[J
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/debug/GlobalMetrics;
0 2 1 debug Lorg/graalvm/compiler/debug/DebugContext;
MethodParameters:
Name Flags
debug
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield org.graalvm.compiler.debug.GlobalMetrics.values:[J
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/debug/GlobalMetrics;
public jdk.internal.vm.compiler.collections.EconomicMap<org.graalvm.compiler.debug.MetricKey, java.lang.Long> asKeyValueMap();
descriptor: ()Ljdk/internal/vm/compiler/collections/EconomicMap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: invokestatic org.graalvm.compiler.debug.KeyRegistry.getKeys:()Ljava/util/List;
astore 1
start local 1 1: aload 1
getstatic org.graalvm.compiler.debug.MetricKey.NAME_COMPARATOR:Ljava/util/Comparator;
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
2: aload 1
invokeinterface java.util.List.size:()I
invokestatic jdk.internal.vm.compiler.collections.EconomicMap.create:(I)Ljdk/internal/vm/compiler/collections/EconomicMap;
astore 2
start local 2 3: aload 0
getfield org.graalvm.compiler.debug.GlobalMetrics.values:[J
astore 3
start local 3 4: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 11
StackMap locals: org.graalvm.compiler.debug.GlobalMetrics java.util.List jdk.internal.vm.compiler.collections.EconomicMap long[] top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.debug.MetricKey
astore 4
start local 4 6: aload 4
checkcast org.graalvm.compiler.debug.AbstractKey
invokevirtual org.graalvm.compiler.debug.AbstractKey.getIndex:()I
istore 6
start local 6 7: aload 3
ifnull 8
iload 6
aload 3
arraylength
if_icmplt 10
8: StackMap locals: org.graalvm.compiler.debug.GlobalMetrics java.util.List jdk.internal.vm.compiler.collections.EconomicMap long[] org.graalvm.compiler.debug.MetricKey java.util.Iterator int
StackMap stack:
aload 2
aload 4
lconst_0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface jdk.internal.vm.compiler.collections.EconomicMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: goto 11
10: StackMap locals:
StackMap stack:
aload 2
aload 4
aload 3
iload 6
laload
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface jdk.internal.vm.compiler.collections.EconomicMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 end local 4 11: StackMap locals: org.graalvm.compiler.debug.GlobalMetrics java.util.List jdk.internal.vm.compiler.collections.EconomicMap long[] top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
12: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/graalvm/compiler/debug/GlobalMetrics;
1 13 1 keys Ljava/util/List<Lorg/graalvm/compiler/debug/MetricKey;>;
3 13 2 res Ljdk/internal/vm/compiler/collections/EconomicMap<Lorg/graalvm/compiler/debug/MetricKey;Ljava/lang/Long;>;
4 13 3 vals [J
6 11 4 key Lorg/graalvm/compiler/debug/MetricKey;
7 11 6 index I
Signature: ()Ljdk/internal/vm/compiler/collections/EconomicMap<Lorg/graalvm/compiler/debug/MetricKey;Ljava/lang/Long;>;
public void print(org.graalvm.compiler.options.OptionValues);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=12, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.debug.GlobalMetrics.values:[J
astore 2
start local 2 1: aload 2
ifnull 39
2: aload 0
invokevirtual org.graalvm.compiler.debug.GlobalMetrics.asKeyValueMap:()Ljdk/internal/vm/compiler/collections/EconomicMap;
astore 3
start local 3 3: getstatic org.graalvm.compiler.debug.DebugOptions.AggregatedMetricsFile: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
astore 4
start local 4 4: aload 4
ifnull 6
aload 4
ldc ".csv"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 5
aload 4
ldc ".CSV"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
StackMap locals: long[] jdk.internal.vm.compiler.collections.EconomicMap java.lang.String
StackMap stack:
5: iconst_1
goto 7
StackMap locals:
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: istore 5
start local 5 8: aconst_null
astore 6
start local 6 9: aload 4
ifnonnull 10
getstatic org.graalvm.compiler.debug.DebugContext.DEFAULT_LOG_STREAM:Ljava/io/PrintStream;
goto 11
StackMap locals: int java.io.PrintStream
StackMap stack:
10: new java.io.PrintStream
dup
aload 4
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newOutputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
StackMap locals:
StackMap stack: java.io.PrintStream
11: astore 6
12: iload 5
ifne 15
13: aload 3
invokeinterface jdk.internal.vm.compiler.collections.EconomicMap.isEmpty:()Z
ifne 15
14: aload 6
ldc "++ Aggregated Metrics ++"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "%s"
aastore
dup
iconst_1
ldc "%s"
aastore
dup
iconst_2
ldc "%s"
aastore
invokestatic org.graalvm.compiler.debug.CSVUtil.buildFormatString:([Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 16: aload 3
invokeinterface jdk.internal.vm.compiler.collections.EconomicMap.getEntries:()Ljdk/internal/vm/compiler/collections/MapCursor;
astore 8
start local 8 17: goto 24
18: StackMap locals: java.lang.String jdk.internal.vm.compiler.collections.MapCursor
StackMap stack:
aload 8
invokeinterface jdk.internal.vm.compiler.collections.MapCursor.getKey:()Ljava/lang/Object;
checkcast org.graalvm.compiler.debug.MetricKey
astore 9
start local 9 19: iload 5
ifeq 23
20: aload 9
aload 8
invokeinterface jdk.internal.vm.compiler.collections.MapCursor.getValue:()Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
invokeinterface org.graalvm.compiler.debug.MetricKey.toCSVFormat:(J)Ljdk/internal/vm/compiler/collections/Pair;
astore 10
start local 10 21: aload 6
aload 7
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 9
invokeinterface org.graalvm.compiler.debug.MetricKey.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 10
invokevirtual jdk.internal.vm.compiler.collections.Pair.getLeft:()Ljava/lang/Object;
aastore
dup
iconst_2
aload 10
invokevirtual jdk.internal.vm.compiler.collections.Pair.getRight:()Ljava/lang/Object;
aastore
invokestatic org.graalvm.compiler.debug.CSVUtil$Escape.println:(Ljava/io/PrintStream;Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
end local 10 22: goto 24
23: StackMap locals: org.graalvm.compiler.debug.MetricKey
StackMap stack:
aload 6
new java.lang.StringBuilder
dup
aload 9
invokeinterface org.graalvm.compiler.debug.MetricKey.getName:()Ljava/lang/String;
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 9
aload 8
invokeinterface jdk.internal.vm.compiler.collections.MapCursor.getValue:()Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
invokeinterface org.graalvm.compiler.debug.MetricKey.toHumanReadableFormat:(J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 9 24: StackMap locals:
StackMap stack:
aload 8
invokeinterface jdk.internal.vm.compiler.collections.MapCursor.advance:()Z
ifne 18
25: iload 5
ifne 37
26: aload 3
invokeinterface jdk.internal.vm.compiler.collections.EconomicMap.isEmpty:()Z
ifne 37
27: aload 6
ldc "-- Aggregated Metrics --"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 8 end local 7 28: goto 37
StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[] jdk.internal.vm.compiler.collections.EconomicMap java.lang.String int java.io.PrintStream
StackMap stack: java.io.IOException
29: astore 7
start local 7 30: aload 7
invokevirtual java.io.IOException.printStackTrace:()V
end local 7 31: aload 4
ifnull 39
aload 6
ifnull 39
32: aload 6
invokevirtual java.io.PrintStream.close:()V
goto 39
33: StackMap locals:
StackMap stack: java.lang.Throwable
astore 11
34: aload 4
ifnull 36
aload 6
ifnull 36
35: aload 6
invokevirtual java.io.PrintStream.close:()V
36: StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[] jdk.internal.vm.compiler.collections.EconomicMap java.lang.String int java.io.PrintStream top top top top java.lang.Throwable
StackMap stack:
aload 11
athrow
37: StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[] jdk.internal.vm.compiler.collections.EconomicMap java.lang.String int java.io.PrintStream
StackMap stack:
aload 4
ifnull 39
aload 6
ifnull 39
38: aload 6
invokevirtual java.io.PrintStream.close:()V
end local 6 end local 5 end local 4 end local 3 39: StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[]
StackMap stack:
getstatic org.graalvm.compiler.debug.DebugOptions.ListMetrics: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 55
40: getstatic java.lang.System.out:Ljava/io/PrintStream;
astore 3
start local 3 41: aload 3
ldc "++ Metric Keys ++"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
42: invokestatic org.graalvm.compiler.debug.KeyRegistry.getKeys:()Ljava/util/List;
astore 4
start local 4 43: aload 4
getstatic org.graalvm.compiler.debug.MetricKey.NAME_COMPARATOR:Ljava/util/Comparator;
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
44: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 53
StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[] java.io.PrintStream java.util.List top java.util.Iterator
StackMap stack:
45: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.debug.MetricKey
astore 5
start local 5 46: aload 5
invokeinterface org.graalvm.compiler.debug.MetricKey.getDocName:()Ljava/lang/String;
astore 7
start local 7 47: aload 7
ifnull 53
48: aload 5
invokeinterface org.graalvm.compiler.debug.MetricKey.getDoc:()Ljava/lang/String;
astore 8
start local 8 49: aload 8
ifnull 52
50: aload 3
new java.lang.StringBuilder
dup
aload 7
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 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
51: goto 53
52: StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[] java.io.PrintStream java.util.List org.graalvm.compiler.debug.MetricKey java.util.Iterator java.lang.String java.lang.String
StackMap stack:
aload 3
aload 7
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 8 end local 7 end local 5 53: StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[] java.io.PrintStream java.util.List top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 45
54: aload 3
ldc "-- Metric Keys --"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 4 end local 3 55: StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[]
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 56 0 this Lorg/graalvm/compiler/debug/GlobalMetrics;
0 56 1 options Lorg/graalvm/compiler/options/OptionValues;
1 56 2 vals [J
3 39 3 map Ljdk/internal/vm/compiler/collections/EconomicMap<Lorg/graalvm/compiler/debug/MetricKey;Ljava/lang/Long;>;
4 39 4 metricsFile Ljava/lang/String;
8 39 5 csv Z
9 39 6 p Ljava/io/PrintStream;
16 28 7 csvFormat Ljava/lang/String;
17 28 8 e Ljdk/internal/vm/compiler/collections/MapCursor<Lorg/graalvm/compiler/debug/MetricKey;Ljava/lang/Long;>;
19 24 9 key Lorg/graalvm/compiler/debug/MetricKey;
21 22 10 valueAndUnit Ljdk/internal/vm/compiler/collections/Pair<Ljava/lang/String;Ljava/lang/String;>;
30 31 7 e Ljava/io/IOException;
41 55 3 p Ljava/io/PrintStream;
43 55 4 keys Ljava/util/List<Lorg/graalvm/compiler/debug/MetricKey;>;
46 53 5 key Lorg/graalvm/compiler/debug/MetricKey;
47 53 7 name Ljava/lang/String;
49 53 8 doc Ljava/lang/String;
Exception table:
from to target type
9 28 29 Class java.io.IOException
9 31 33 any
MethodParameters:
Name Flags
options
}
SourceFile: "GlobalMetrics.java"
InnerClasses:
public final Escape = org.graalvm.compiler.debug.CSVUtil$Escape of org.graalvm.compiler.debug.CSVUtil