public class sun.jvm.hotspot.tools.JSnap 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.JSnap
super_class: sun.jvm.hotspot.tools.Tool
{
private boolean all;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
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/JSnap;
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/JSnap;
0 2 1 d Lsun/jvm/hotspot/debugger/JVMDebugger;
MethodParameters:
Name Flags
d
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
astore 1
start local 1 1: invokestatic sun.jvm.hotspot.runtime.PerfMemory.initialized:()Z
ifeq 8
2: invokestatic sun.jvm.hotspot.runtime.PerfMemory.prologue:()Lsun/jvm/hotspot/runtime/PerfDataPrologue;
astore 2
start local 2 3: aload 2
invokevirtual sun.jvm.hotspot.runtime.PerfDataPrologue.accessible:()Z
ifeq 6
4: new sun.jvm.hotspot.tools.JSnap$1
dup
aload 0
aload 1
invokespecial sun.jvm.hotspot.tools.JSnap$1.<init>:(Lsun/jvm/hotspot/tools/JSnap;Ljava/io/PrintStream;)V
invokestatic sun.jvm.hotspot.runtime.PerfMemory.iterate:(Lsun/jvm/hotspot/runtime/PerfMemory$PerfDataEntryVisitor;)V
5: goto 9
6: StackMap locals: java.io.PrintStream sun.jvm.hotspot.runtime.PerfDataPrologue
StackMap stack:
aload 1
ldc "PerfMemory is not accessible"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 2 7: goto 9
8: StackMap locals:
StackMap stack:
aload 1
ldc "PerfMemory is not initialized"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/jvm/hotspot/tools/JSnap;
1 10 1 out Ljava/io/PrintStream;
3 7 2 prologue Lsun/jvm/hotspot/runtime/PerfDataPrologue;
protected void printFlagsUsage();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -a\tto print all performance counters"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: aload 0
invokespecial sun.jvm.hotspot.tools.Tool.printFlagsUsage:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/tools/JSnap;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new sun.jvm.hotspot.tools.JSnap
dup
invokespecial sun.jvm.hotspot.tools.JSnap.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
2: invokedynamic test()Ljava/util/function/Predicate;
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;)Z
sun/jvm/hotspot/tools/JSnap.lambda$0(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.anyMatch:(Ljava/util/function/Predicate;)Z
3: putfield sun.jvm.hotspot.tools.JSnap.all:Z
4: aload 1
getfield sun.jvm.hotspot.tools.JSnap.all:Z
ifeq 10
5: aload 0
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
6: invokedynamic test()Ljava/util/function/Predicate;
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;)Z
sun/jvm/hotspot/tools/JSnap.lambda$1(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
7: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
8: iconst_0
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
9: astore 0
10: StackMap locals: sun.jvm.hotspot.tools.JSnap
StackMap stack:
aload 1
aload 0
invokevirtual sun.jvm.hotspot.tools.JSnap.execute:([Ljava/lang/String;)V
11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 args [Ljava/lang/String;
1 12 1 js Lsun/jvm/hotspot/tools/JSnap;
MethodParameters:
Name Flags
args
private static boolean lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "-a"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
private static boolean lambda$1(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "-a"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
}
SourceFile: "JSnap.java"
NestMembers:
sun.jvm.hotspot.tools.JSnap$1
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract PerfDataEntryVisitor = sun.jvm.hotspot.runtime.PerfMemory$PerfDataEntryVisitor of sun.jvm.hotspot.runtime.PerfMemory
sun.jvm.hotspot.tools.JSnap$1