public class org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter implements org.graalvm.compiler.debug.DebugHistogram$Printer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter
super_class: java.lang.Object
{
public static final int NumberSize;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 10
public static final int DefaultNameSize;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 50
public static final int DefaultBarSize;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 100
public static final int DefaultScale;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private final java.io.PrintStream os;
descriptor: Ljava/io/PrintStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int limit;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int nameSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int barSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int scale;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc 2147483647
bipush 50
bipush 100
iconst_1
invokespecial org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.<init>:(Ljava/io/PrintStream;IIII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/debug/internal/DebugHistogramAsciiPrinter;
0 2 1 os Ljava/io/PrintStream;
MethodParameters:
Name Flags
os
public void <init>(java.io.PrintStream, int, int, int, int);
descriptor: (Ljava/io/PrintStream;IIII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.os:Ljava/io/PrintStream;
2: aload 0
iload 2
putfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.limit:I
3: aload 0
iload 3
putfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.nameSize:I
4: aload 0
iload 4
putfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.barSize:I
5: aload 0
iload 5
putfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.scale:I
6: return
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 7 0 this Lorg/graalvm/compiler/debug/internal/DebugHistogramAsciiPrinter;
0 7 1 os Ljava/io/PrintStream;
0 7 2 limit I
0 7 3 nameSize I
0 7 4 barSize I
0 7 5 scale I
MethodParameters:
Name Flags
os
limit
nameSize
barSize
scale
public void print(org.graalvm.compiler.debug.DebugHistogram);
descriptor: (Lorg/graalvm/compiler/debug/DebugHistogram;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=15, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.graalvm.compiler.debug.DebugHistogram.getValues:()Ljava/util/List;
astore 2
start local 2 1: aload 2
invokeinterface java.util.List.isEmpty:()Z
ifeq 4
2: aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.os:Ljava/io/PrintStream;
ldc "%s is empty.%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokeinterface org.graalvm.compiler.debug.DebugHistogram.getName:()Ljava/lang/String;
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
3: return
4: StackMap locals: java.util.List
StackMap stack:
aload 2
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic applyAsLong()Ljava/util/function/ToLongFunction;
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;)J
org/graalvm/compiler/debug/DebugHistogram$CountedValue.getCount()J (5)
(Lorg/graalvm/compiler/debug/DebugHistogram$CountedValue;)J
invokeinterface java.util.stream.Stream.mapToLong:(Ljava/util/function/ToLongFunction;)Ljava/util/stream/LongStream;
invokeinterface java.util.stream.LongStream.sum:()J
lstore 3
start local 3 5: aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.os:Ljava/io/PrintStream;
ldc "%s has %d unique elements and %d total elements:%n"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
invokeinterface org.graalvm.compiler.debug.DebugHistogram.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 2
invokeinterface java.util.List.size:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
lload 3
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.scale:I
i2l
ldiv
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
6: aload 2
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.compiler.debug.DebugHistogram$CountedValue
invokevirtual org.graalvm.compiler.debug.DebugHistogram$CountedValue.getCount:()J
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.scale:I
i2l
ldiv
lstore 5
start local 5 7: aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.nameSize:I
bipush 10
iadd
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.barSize:I
iadd
bipush 10
iadd
istore 7
start local 7 8: aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.os:Ljava/io/PrintStream;
bipush 45
iload 7
invokestatic org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.printLine:(Ljava/io/PrintStream;CI)V
9: new java.lang.StringBuilder
dup
ldc "| %-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.nameSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "s | %-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 10
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "d | %-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.barSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "s |\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 8
start local 8 10: iconst_0
istore 9
start local 9 11: goto 21
12: StackMap locals: org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter org.graalvm.compiler.debug.DebugHistogram java.util.List long long int java.lang.String int
StackMap stack:
aload 2
iload 9
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.compiler.debug.DebugHistogram$CountedValue
astore 10
start local 10 13: aload 10
invokevirtual org.graalvm.compiler.debug.DebugHistogram$CountedValue.getCount:()J
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.scale:I
i2l
ldiv
lstore 11
start local 11 14: lload 11
l2d
lload 5
l2d
ddiv
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.barSize:I
i2d
dmul
d2i
newarray 5
astore 13
start local 13 15: aload 13
bipush 61
invokestatic java.util.Arrays.fill:([CC)V
16: aload 10
invokevirtual org.graalvm.compiler.debug.DebugHistogram$CountedValue.getValue:()Ljava/lang/Object;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
astore 14
start local 14 17: aload 14
invokevirtual java.lang.String.length:()I
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.nameSize:I
if_icmple 19
18: new java.lang.StringBuilder
dup
aload 14
iconst_0
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.nameSize:I
iconst_3
isub
invokevirtual java.lang.String.substring:(II)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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 14
19: StackMap locals: org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter org.graalvm.compiler.debug.DebugHistogram java.util.List long long int java.lang.String int org.graalvm.compiler.debug.DebugHistogram$CountedValue long char[] java.lang.String
StackMap stack:
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.os:Ljava/io/PrintStream;
aload 8
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 14
aastore
dup
iconst_1
lload 11
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_2
new java.lang.String
dup
aload 13
invokespecial java.lang.String.<init>:([C)V
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
end local 14 end local 13 end local 11 end local 10 20: iinc 9 1
StackMap locals: org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter org.graalvm.compiler.debug.DebugHistogram java.util.List long long int java.lang.String int
StackMap stack:
21: iload 9
aload 2
invokeinterface java.util.List.size:()I
if_icmpge 22
iload 9
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.limit:I
if_icmplt 12
end local 9 22: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.os:Ljava/io/PrintStream;
bipush 45
iload 7
invokestatic org.graalvm.compiler.debug.internal.DebugHistogramAsciiPrinter.printLine:(Ljava/io/PrintStream;CI)V
23: return
end local 8 end local 7 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/graalvm/compiler/debug/internal/DebugHistogramAsciiPrinter;
0 24 1 histogram Lorg/graalvm/compiler/debug/DebugHistogram;
1 24 2 list Ljava/util/List<Lorg/graalvm/compiler/debug/DebugHistogram$CountedValue;>;
5 24 3 total J
7 24 5 max J
8 24 7 lineSize I
10 24 8 formatString Ljava/lang/String;
11 22 9 i I
13 20 10 cv Lorg/graalvm/compiler/debug/DebugHistogram$CountedValue;
14 20 11 value J
15 20 13 bar [C
17 20 14 objectString Ljava/lang/String;
MethodParameters:
Name Flags
histogram
private static void printLine(java.io.PrintStream, char, int);
descriptor: (Ljava/io/PrintStream;CI)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=8, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
newarray 5
astore 3
start local 3 1: aload 3
iload 1
invokestatic java.util.Arrays.fill:([CC)V
2: aload 0
ldc "%s%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
new java.lang.String
dup
aload 3
invokespecial java.lang.String.<init>:([C)V
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 printStream Ljava/io/PrintStream;
0 4 1 c C
0 4 2 lineSize I
1 4 3 charArr [C
MethodParameters:
Name Flags
printStream
c
lineSize
}
SourceFile: "DebugHistogramAsciiPrinter.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public CountedValue = org.graalvm.compiler.debug.DebugHistogram$CountedValue of org.graalvm.compiler.debug.DebugHistogram
public abstract Printer = org.graalvm.compiler.debug.DebugHistogram$Printer of org.graalvm.compiler.debug.DebugHistogram