public class org.jruby.runtime.profile.builtin.FlatProfilePrinter extends org.jruby.runtime.profile.builtin.ProfilePrinter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.runtime.profile.builtin.FlatProfilePrinter
super_class: org.jruby.runtime.profile.builtin.ProfilePrinter
{
private static final int SERIAL_OFFSET;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int SELFTIME_OFFSET;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int COUNT_OFFSET;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int AGGREGATETIME_OFFSET;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
public void <init>(org.jruby.runtime.profile.builtin.ProfileData);
descriptor: (Lorg/jruby/runtime/profile/builtin/ProfileData;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.jruby.runtime.profile.builtin.ProfilePrinter.<init>:(Lorg/jruby/runtime/profile/builtin/ProfileData;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/runtime/profile/builtin/FlatProfilePrinter;
0 2 1 profileData Lorg/jruby/runtime/profile/builtin/ProfileData;
MethodParameters:
Name Flags
profileData
void <init>(org.jruby.runtime.profile.builtin.ProfileData, org.jruby.runtime.profile.builtin.Invocation);
descriptor: (Lorg/jruby/runtime/profile/builtin/ProfileData;Lorg/jruby/runtime/profile/builtin/Invocation;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.jruby.runtime.profile.builtin.ProfilePrinter.<init>:(Lorg/jruby/runtime/profile/builtin/ProfileData;Lorg/jruby/runtime/profile/builtin/Invocation;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/runtime/profile/builtin/FlatProfilePrinter;
0 2 1 profileData Lorg/jruby/runtime/profile/builtin/ProfileData;
0 2 2 topInvocation Lorg/jruby/runtime/profile/builtin/Invocation;
MethodParameters:
Name Flags
profileData
topInvocation
public void (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 1
ldc "\n%s profile results:\n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.jruby.runtime.profile.builtin.FlatProfilePrinter.getThreadName:()Ljava/lang/String;
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/runtime/profile/builtin/FlatProfilePrinter;
0 2 1 out Ljava/io/PrintStream;
MethodParameters:
Name Flags
out
public void printProfile(java.io.PrintStream, boolean);
descriptor: (Ljava/io/PrintStream;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=14, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.runtime.profile.builtin.FlatProfilePrinter.getTopInvocation:()Lorg/jruby/runtime/profile/builtin/Invocation;
astore 3
start local 3 1: aload 1
ldc "Total time: %s\n\n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
invokevirtual org.jruby.runtime.profile.builtin.Invocation.getDuration:()J
invokestatic org.jruby.runtime.profile.builtin.FlatProfilePrinter.nanoString:(J)Ljava/lang/String;
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
2: aload 3
invokestatic org.jruby.runtime.profile.builtin.FlatProfilePrinter.methodData:(Lorg/jruby/runtime/profile/builtin/Invocation;)Lorg/jruby/util/collections/IntHashMap;
astore 4
start local 4 3: aload 4
invokevirtual org.jruby.util.collections.IntHashMap.size:()I
anewarray long[]
astore 5
start local 5 4: iconst_0
istore 6
start local 6 5: aload 4
invokevirtual org.jruby.util.collections.IntHashMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 8
goto 9
StackMap locals: org.jruby.runtime.profile.builtin.FlatProfilePrinter java.io.PrintStream int org.jruby.runtime.profile.builtin.Invocation org.jruby.util.collections.IntHashMap long[][] int top java.util.Iterator
StackMap stack:
6: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.jruby.util.collections.IntHashMap$Entry
astore 7
start local 7 7: aload 7
invokevirtual org.jruby.util.collections.IntHashMap$Entry.getValue:()Ljava/lang/Object;
checkcast org.jruby.runtime.profile.builtin.MethodData
astore 9
start local 9 8: aload 5
iload 6
iinc 6 1
iconst_4
newarray 11
dup
iconst_0
aload 7
invokevirtual org.jruby.util.collections.IntHashMap$Entry.getKey:()I
i2l
lastore
dup
iconst_1
aload 9
invokevirtual org.jruby.runtime.profile.builtin.MethodData.selfTime:()J
lastore
dup
iconst_2
aload 9
invokevirtual org.jruby.runtime.profile.builtin.MethodData.totalCalls:()I
i2l
lastore
dup
iconst_3
aload 9
invokevirtual org.jruby.runtime.profile.builtin.MethodData.totalTime:()J
lastore
aastore
end local 9 end local 7 9: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
10: aload 5
new org.jruby.runtime.profile.builtin.FlatProfilePrinter$1
dup
aload 0
invokespecial org.jruby.runtime.profile.builtin.FlatProfilePrinter$1.<init>:(Lorg/jruby/runtime/profile/builtin/FlatProfilePrinter;)V
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;Ljava/util/Comparator;)V
11: aload 1
ldc " total self children calls method"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: aload 1
ldc "----------------------------------------------------------------"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: iconst_0
istore 7
start local 7 14: aload 5
dup
astore 11
arraylength
istore 10
iconst_0
istore 9
goto 34
StackMap locals: org.jruby.runtime.profile.builtin.FlatProfilePrinter java.io.PrintStream int org.jruby.runtime.profile.builtin.Invocation org.jruby.util.collections.IntHashMap long[][] int int top int int long[][]
StackMap stack:
15: aload 11
iload 9
aaload
astore 8
start local 8 16: aload 8
iconst_3
laload
lconst_0
lcmp
ifne 18
17: goto 35
18: StackMap locals: org.jruby.runtime.profile.builtin.FlatProfilePrinter java.io.PrintStream int org.jruby.runtime.profile.builtin.Invocation org.jruby.util.collections.IntHashMap long[][] int int long[] int int long[][]
StackMap stack:
aload 8
iconst_0
laload
l2i
istore 12
start local 12 19: iload 12
ifeq 31
20: iinc 7 1
21: aload 0
iload 12
invokevirtual org.jruby.runtime.profile.builtin.FlatProfilePrinter.methodName:(I)Ljava/lang/String;
astore 13
start local 13 22: aload 1
bipush 10
aload 8
iconst_3
laload
invokestatic org.jruby.runtime.profile.builtin.FlatProfilePrinter.nanoString:(J)Ljava/lang/String;
invokestatic org.jruby.runtime.profile.builtin.FlatProfilePrinter.pad:(Ljava/io/PrintStream;ILjava/lang/String;)V
23: aload 1
ldc " "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
24: aload 1
bipush 10
aload 8
iconst_1
laload
invokestatic org.jruby.runtime.profile.builtin.FlatProfilePrinter.nanoString:(J)Ljava/lang/String;
invokestatic org.jruby.runtime.profile.builtin.FlatProfilePrinter.pad:(Ljava/io/PrintStream;ILjava/lang/String;)V
25: aload 1
ldc " "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
26: aload 1
bipush 10
aload 8
iconst_3
laload
aload 8
iconst_1
laload
lsub
invokestatic org.jruby.runtime.profile.builtin.FlatProfilePrinter.nanoString:(J)Ljava/lang/String;
invokestatic org.jruby.runtime.profile.builtin.FlatProfilePrinter.pad:(Ljava/io/PrintStream;ILjava/lang/String;)V
27: aload 1
ldc " "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
28: aload 1
bipush 10
aload 8
iconst_2
laload
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
invokestatic org.jruby.runtime.profile.builtin.FlatProfilePrinter.pad:(Ljava/io/PrintStream;ILjava/lang/String;)V
29: aload 1
ldc " "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
30: aload 1
aload 13
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 13 31: StackMap locals: int
StackMap stack:
iload 7
bipush 50
if_icmpne 33
32: goto 35
end local 12 end local 8 33: StackMap locals: org.jruby.runtime.profile.builtin.FlatProfilePrinter java.io.PrintStream int org.jruby.runtime.profile.builtin.Invocation org.jruby.util.collections.IntHashMap long[][] int int top int int long[][]
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
34: iload 9
iload 10
if_icmplt 15
35: StackMap locals: org.jruby.runtime.profile.builtin.FlatProfilePrinter java.io.PrintStream int org.jruby.runtime.profile.builtin.Invocation org.jruby.util.collections.IntHashMap long[][] int int
StackMap stack:
return
end local 7 end local 6 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 36 0 this Lorg/jruby/runtime/profile/builtin/FlatProfilePrinter;
0 36 1 out Ljava/io/PrintStream;
0 36 2 first Z
1 36 3 topInvocation Lorg/jruby/runtime/profile/builtin/Invocation;
3 36 4 methods Lorg/jruby/util/collections/IntHashMap<Lorg/jruby/runtime/profile/builtin/MethodData;>;
4 36 5 tuples [[J
5 36 6 j I
7 9 7 entry Lorg/jruby/util/collections/IntHashMap$Entry<Lorg/jruby/runtime/profile/builtin/MethodData;>;
8 9 9 method Lorg/jruby/runtime/profile/builtin/MethodData;
14 36 7 lines I
16 33 8 tuple [J
19 33 12 index I
22 31 13 name Ljava/lang/String;
MethodParameters:
Name Flags
out
first
}
SourceFile: "FlatProfilePrinter.java"
NestMembers:
org.jruby.runtime.profile.builtin.FlatProfilePrinter$1
InnerClasses:
org.jruby.runtime.profile.builtin.FlatProfilePrinter$1
public Entry = org.jruby.util.collections.IntHashMap$Entry of org.jruby.util.collections.IntHashMap