public class sun.jvm.hotspot.tools.ObjectHistogram extends sun.jvm.hotspot.tools.Tool
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.tools.ObjectHistogram
super_class: sun.jvm.hotspot.tools.Tool
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial sun.jvm.hotspot.tools.Tool.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/tools/ObjectHistogram;
public void <init>(sun.jvm.hotspot.debugger.JVMDebugger);
descriptor: (Lsun/jvm/hotspot/debugger/JVMDebugger;)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 sun.jvm.hotspot.tools.Tool.<init>:(Lsun/jvm/hotspot/debugger/JVMDebugger;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/tools/ObjectHistogram;
0 2 1 d Lsun/jvm/hotspot/debugger/JVMDebugger;
MethodParameters:
Name Flags
d
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "objectHistogram"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/tools/ObjectHistogram;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.lang.System.out:Ljava/io/PrintStream;
getstatic java.lang.System.err:Ljava/io/PrintStream;
invokevirtual sun.jvm.hotspot.tools.ObjectHistogram.run:(Ljava/io/PrintStream;Ljava/io/PrintStream;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/tools/ObjectHistogram;
public void run(java.io.PrintStream, java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=3
start local 0 start local 1 start local 2 0: invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.getObjectHeap:()Lsun/jvm/hotspot/oops/ObjectHeap;
astore 3
start local 3 1: new sun.jvm.hotspot.oops.ObjectHistogram
dup
invokespecial sun.jvm.hotspot.oops.ObjectHistogram.<init>:()V
2: astore 4
start local 4 3: aload 2
ldc "Iterating over heap. This may take a while..."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: invokestatic java.lang.System.currentTimeMillis:()J
lstore 5
start local 5 5: aload 3
aload 4
invokevirtual sun.jvm.hotspot.oops.ObjectHeap.iterate:(Lsun/jvm/hotspot/oops/HeapVisitor;)V
6: invokestatic java.lang.System.currentTimeMillis:()J
lstore 7
start local 7 7: aload 4
aload 1
invokevirtual sun.jvm.hotspot.oops.ObjectHistogram.printOn:(Ljava/io/PrintStream;)V
8: lload 7
lload 5
lsub
l2f
ldc 1000.0
fdiv
fstore 9
start local 9 9: aload 2
new java.lang.StringBuilder
dup
ldc "Heap traversal took "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
fload 9
invokevirtual java.lang.StringBuilder.append:(F)Ljava/lang/StringBuilder;
ldc " seconds."
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
10: return
end local 9 end local 7 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 11 0 this Lsun/jvm/hotspot/tools/ObjectHistogram;
0 11 1 out Ljava/io/PrintStream;
0 11 2 err Ljava/io/PrintStream;
1 11 3 heap Lsun/jvm/hotspot/oops/ObjectHeap;
3 11 4 histogram Lsun/jvm/hotspot/oops/ObjectHistogram;
5 11 5 startTime J
7 11 7 endTime J
9 11 9 secs F
MethodParameters:
Name Flags
out
err
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new sun.jvm.hotspot.tools.ObjectHistogram
dup
invokespecial sun.jvm.hotspot.tools.ObjectHistogram.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual sun.jvm.hotspot.tools.ObjectHistogram.execute:([Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 args [Ljava/lang/String;
1 3 1 oh Lsun/jvm/hotspot/tools/ObjectHistogram;
MethodParameters:
Name Flags
args
}
SourceFile: "ObjectHistogram.java"