public class org.graalvm.compiler.replacements.SnippetCounter$Group
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.SnippetCounter$Group
super_class: java.lang.Object
{
final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
final java.util.List<org.graalvm.compiler.replacements.SnippetCounter> counters;
descriptor: Ljava/util/List;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/List<Lorg/graalvm/compiler/replacements/SnippetCounter;>;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 // org.graalvm.compiler.replacements.SnippetCounter$Group this
start local 1 // java.lang.String name
0: .line 45
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 46
aload 0 /* this */
aload 1 /* name */
putfield org.graalvm.compiler.replacements.SnippetCounter$Group.name:Ljava/lang/String;
2: .line 47
aload 0 /* this */
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.graalvm.compiler.replacements.SnippetCounter$Group.counters:Ljava/util/List;
3: .line 48
return
end local 1 // java.lang.String name
end local 0 // org.graalvm.compiler.replacements.SnippetCounter$Group this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/replacements/SnippetCounter$Group;
0 4 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public synchronized java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=7, locals=10, args_size=1
start local 0 // org.graalvm.compiler.replacements.SnippetCounter$Group this
0: .line 52
aload 0 /* this */
getfield org.graalvm.compiler.replacements.SnippetCounter$Group.counters:Ljava/util/List;
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
1: .line 54
lconst_0
lstore 1 /* total */
start local 1 // long total
2: .line 55
iconst_0
istore 3 /* maxNameLen */
start local 3 // int maxNameLen
3: .line 56
aload 0 /* this */
getfield org.graalvm.compiler.replacements.SnippetCounter$Group.counters:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: org.graalvm.compiler.replacements.SnippetCounter$Group long int top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.replacements.SnippetCounter
astore 4 /* c */
start local 4 // org.graalvm.compiler.replacements.SnippetCounter c
5: .line 57
lload 1 /* total */
aload 4 /* c */
getfield org.graalvm.compiler.replacements.SnippetCounter.value:J
ladd
lstore 1 /* total */
6: .line 58
aload 4 /* c */
getfield org.graalvm.compiler.replacements.SnippetCounter.name:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
iload 3 /* maxNameLen */
invokestatic java.lang.Math.max:(II)I
istore 3 /* maxNameLen */
end local 4 // org.graalvm.compiler.replacements.SnippetCounter c
7: .line 56
StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: .line 61
new java.lang.StringBuilder
dup
ldc "Counters: %s%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0 /* this */
getfield org.graalvm.compiler.replacements.SnippetCounter$Group.name:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 4 /* buf */
start local 4 // java.lang.StringBuilder buf
9: .line 63
new java.lang.StringBuilder
dup
ldc " %"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3 /* maxNameLen */
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "s: %6.2f%%%,"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "%,d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 1 /* total */
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.String.length:()I
iconst_2
iadd
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "d // %s%n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5 /* formatString */
start local 5 // java.lang.String formatString
10: .line 64
aload 0 /* this */
getfield org.graalvm.compiler.replacements.SnippetCounter$Group.counters:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 16
StackMap locals: org.graalvm.compiler.replacements.SnippetCounter$Group long int java.lang.StringBuilder java.lang.String top java.util.Iterator
StackMap stack:
11: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.replacements.SnippetCounter
astore 6 /* c */
start local 6 // org.graalvm.compiler.replacements.SnippetCounter c
12: .line 65
lload 1 /* total */
l2d
dconst_0
dcmpl
ifne 13
dconst_0
goto 14
StackMap locals: org.graalvm.compiler.replacements.SnippetCounter$Group long int java.lang.StringBuilder java.lang.String org.graalvm.compiler.replacements.SnippetCounter java.util.Iterator
StackMap stack:
13: aload 6 /* c */
getfield org.graalvm.compiler.replacements.SnippetCounter.value:J
ldc 100
lmul
l2d
lload 1 /* total */
l2d
ddiv
StackMap locals:
StackMap stack: double
14: dstore 8 /* percent */
start local 8 // double percent
15: .line 66
aload 4 /* buf */
aload 5 /* formatString */
iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 6 /* c */
getfield org.graalvm.compiler.replacements.SnippetCounter.name:Ljava/lang/String;
aastore
dup
iconst_1
dload 8 /* percent */
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_2
aload 6 /* c */
getfield org.graalvm.compiler.replacements.SnippetCounter.value:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_3
aload 6 /* c */
getfield org.graalvm.compiler.replacements.SnippetCounter.description:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 8 // double percent
end local 6 // org.graalvm.compiler.replacements.SnippetCounter c
16: .line 64
StackMap locals: org.graalvm.compiler.replacements.SnippetCounter$Group long int java.lang.StringBuilder java.lang.String top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
17: .line 68
aload 4 /* buf */
aload 5 /* formatString */
iconst_4
anewarray java.lang.Object
dup
iconst_0
ldc "TOTAL"
aastore
dup
iconst_1
ldc 100.0
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_2
lload 1 /* total */
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_3
ldc ""
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
18: .line 70
aload 4 /* buf */
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 5 // java.lang.String formatString
end local 4 // java.lang.StringBuilder buf
end local 3 // int maxNameLen
end local 1 // long total
end local 0 // org.graalvm.compiler.replacements.SnippetCounter$Group this
LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/graalvm/compiler/replacements/SnippetCounter$Group;
2 19 1 total J
3 19 3 maxNameLen I
5 7 4 c Lorg/graalvm/compiler/replacements/SnippetCounter;
9 19 4 buf Ljava/lang/StringBuilder;
10 19 5 formatString Ljava/lang/String;
12 16 6 c Lorg/graalvm/compiler/replacements/SnippetCounter;
15 16 8 percent D
}
SourceFile: "SnippetCounter.java"
NestHost: org.graalvm.compiler.replacements.SnippetCounter
InnerClasses:
public Group = org.graalvm.compiler.replacements.SnippetCounter$Group of org.graalvm.compiler.replacements.SnippetCounter