public class sun.tools.jstat.Jstat
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.jstat.Jstat
super_class: java.lang.Object
{
private static sun.tools.jstat.Arguments arguments;
descriptor: Lsun/tools/jstat/Arguments;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/jstat/Jstat;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new sun.tools.jstat.Arguments
dup
aload 0
invokespecial sun.tools.jstat.Arguments.<init>:([Ljava/lang/String;)V
putstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
1: goto 6
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
2: astore 1
start local 1 3: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 1
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: getstatic java.lang.System.err:Ljava/io/PrintStream;
invokestatic sun.tools.jstat.Arguments.printUsage:(Ljava/io/PrintStream;)V
5: iconst_1
invokestatic java.lang.System.exit:(I)V
end local 1 6: StackMap locals:
StackMap stack:
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.isHelp:()Z
ifeq 9
7: getstatic java.lang.System.out:Ljava/io/PrintStream;
invokestatic sun.tools.jstat.Arguments.printUsage:(Ljava/io/PrintStream;)V
8: iconst_0
invokestatic java.lang.System.exit:(I)V
9: StackMap locals:
StackMap stack:
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.isOptions:()Z
ifeq 13
10: new sun.tools.jstat.OptionLister
dup
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.optionsSources:()[Ljava/net/URL;
invokespecial sun.tools.jstat.OptionLister.<init>:([Ljava/net/URL;)V
astore 1
start local 1 11: aload 1
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual sun.tools.jstat.OptionLister.print:(Ljava/io/PrintStream;)V
12: iconst_0
invokestatic java.lang.System.exit:(I)V
end local 1 13: StackMap locals:
StackMap stack:
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.isList:()Z
ifeq 16
14: invokestatic sun.tools.jstat.Jstat.logNames:()V
15: goto 31
StackMap locals:
StackMap stack:
16: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.isSnap:()Z
ifeq 19
17: invokestatic sun.tools.jstat.Jstat.logSnapShot:()V
18: goto 31
19: StackMap locals:
StackMap stack:
invokestatic sun.tools.jstat.Jstat.logSamples:()V
20: goto 31
StackMap locals:
StackMap stack: sun.jvmstat.monitor.MonitorException
21: astore 1
start local 1 22: aload 1
invokevirtual sun.jvmstat.monitor.MonitorException.getMessage:()Ljava/lang/String;
ifnull 25
23: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 1
invokevirtual sun.jvmstat.monitor.MonitorException.getMessage:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
24: goto 30
25: StackMap locals: sun.jvmstat.monitor.MonitorException
StackMap stack:
aload 1
invokevirtual sun.jvmstat.monitor.MonitorException.getCause:()Ljava/lang/Throwable;
astore 2
start local 2 26: aload 2
ifnull 29
aload 2
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
ifnull 29
27: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 2
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
28: goto 30
29: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
invokevirtual sun.jvmstat.monitor.MonitorException.printStackTrace:()V
end local 2 30: StackMap locals:
StackMap stack:
iconst_1
invokestatic java.lang.System.exit:(I)V
end local 1 31: StackMap locals:
StackMap stack:
iconst_0
invokestatic java.lang.System.exit:(I)V
32: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 args [Ljava/lang/String;
3 6 1 e Ljava/lang/IllegalArgumentException;
11 13 1 ol Lsun/tools/jstat/OptionLister;
22 31 1 e Lsun/jvmstat/monitor/MonitorException;
26 30 2 cause Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
13 20 21 Class sun.jvmstat.monitor.MonitorException
MethodParameters:
Name Flags
args
static void logNames();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=0
0: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.vmId:()Lsun/jvmstat/monitor/VmIdentifier;
astore 0
start local 0 1: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.sampleInterval:()I
istore 1
start local 1 2: aload 0
invokestatic sun.jvmstat.monitor.MonitoredHost.getMonitoredHost:(Lsun/jvmstat/monitor/VmIdentifier;)Lsun/jvmstat/monitor/MonitoredHost;
astore 2
start local 2 3: aload 2
aload 0
iload 1
invokevirtual sun.jvmstat.monitor.MonitoredHost.getMonitoredVm:(Lsun/jvmstat/monitor/VmIdentifier;I)Lsun/jvmstat/monitor/MonitoredVm;
astore 3
start local 3 4: new sun.tools.jstat.JStatLogger
dup
aload 3
invokespecial sun.tools.jstat.JStatLogger.<init>:(Lsun/jvmstat/monitor/MonitoredVm;)V
astore 4
start local 4 5: aload 4
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.counterNames:()Ljava/lang/String;
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.comparator:()Ljava/util/Comparator;
6: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.showUnsupported:()Z
getstatic java.lang.System.out:Ljava/io/PrintStream;
7: invokevirtual sun.tools.jstat.JStatLogger.printNames:(Ljava/lang/String;Ljava/util/Comparator;ZLjava/io/PrintStream;)V
8: aload 2
aload 3
invokevirtual sun.jvmstat.monitor.MonitoredHost.detach:(Lsun/jvmstat/monitor/MonitoredVm;)V
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 10 0 vmId Lsun/jvmstat/monitor/VmIdentifier;
2 10 1 interval I
3 10 2 monitoredHost Lsun/jvmstat/monitor/MonitoredHost;
4 10 3 monitoredVm Lsun/jvmstat/monitor/MonitoredVm;
5 10 4 logger Lsun/tools/jstat/JStatLogger;
Exceptions:
throws sun.jvmstat.monitor.MonitorException
static void logSnapShot();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=5, args_size=0
0: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.vmId:()Lsun/jvmstat/monitor/VmIdentifier;
astore 0
start local 0 1: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.sampleInterval:()I
istore 1
start local 1 2: aload 0
invokestatic sun.jvmstat.monitor.MonitoredHost.getMonitoredHost:(Lsun/jvmstat/monitor/VmIdentifier;)Lsun/jvmstat/monitor/MonitoredHost;
astore 2
start local 2 3: aload 2
aload 0
iload 1
invokevirtual sun.jvmstat.monitor.MonitoredHost.getMonitoredVm:(Lsun/jvmstat/monitor/VmIdentifier;I)Lsun/jvmstat/monitor/MonitoredVm;
astore 3
start local 3 4: new sun.tools.jstat.JStatLogger
dup
aload 3
invokespecial sun.tools.jstat.JStatLogger.<init>:(Lsun/jvmstat/monitor/MonitoredVm;)V
astore 4
start local 4 5: aload 4
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.counterNames:()Ljava/lang/String;
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.comparator:()Ljava/util/Comparator;
6: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.isVerbose:()Z
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.showUnsupported:()Z
7: getstatic java.lang.System.out:Ljava/io/PrintStream;
8: invokevirtual sun.tools.jstat.JStatLogger.printSnapShot:(Ljava/lang/String;Ljava/util/Comparator;ZZLjava/io/PrintStream;)V
9: aload 2
aload 3
invokevirtual sun.jvmstat.monitor.MonitoredHost.detach:(Lsun/jvmstat/monitor/MonitoredVm;)V
10: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 11 0 vmId Lsun/jvmstat/monitor/VmIdentifier;
2 11 1 interval I
3 11 2 monitoredHost Lsun/jvmstat/monitor/MonitoredHost;
4 11 3 monitoredVm Lsun/jvmstat/monitor/MonitoredVm;
5 11 4 logger Lsun/tools/jstat/JStatLogger;
Exceptions:
throws sun.jvmstat.monitor.MonitorException
static void logSamples();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=10, args_size=0
0: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.vmId:()Lsun/jvmstat/monitor/VmIdentifier;
astore 0
start local 0 1: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.sampleInterval:()I
istore 1
start local 1 2: aload 0
invokestatic sun.jvmstat.monitor.MonitoredHost.getMonitoredHost:(Lsun/jvmstat/monitor/VmIdentifier;)Lsun/jvmstat/monitor/MonitoredHost;
3: astore 2
start local 2 4: aload 2
aload 0
iload 1
invokevirtual sun.jvmstat.monitor.MonitoredHost.getMonitoredVm:(Lsun/jvmstat/monitor/VmIdentifier;I)Lsun/jvmstat/monitor/MonitoredVm;
astore 3
start local 3 5: new sun.tools.jstat.JStatLogger
dup
aload 3
invokespecial sun.tools.jstat.JStatLogger.<init>:(Lsun/jvmstat/monitor/MonitoredVm;)V
astore 4
start local 4 6: aconst_null
astore 5
start local 5 7: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.isSpecialOption:()Z
ifeq 11
8: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.optionFormat:()Lsun/tools/jstat/OptionFormat;
astore 6
start local 6 9: new sun.tools.jstat.OptionOutputFormatter
dup
aload 3
aload 6
invokespecial sun.tools.jstat.OptionOutputFormatter.<init>:(Lsun/jvmstat/monitor/MonitoredVm;Lsun/tools/jstat/OptionFormat;)V
astore 5
end local 6 10: goto 40
11: StackMap locals: sun.jvmstat.monitor.VmIdentifier int sun.jvmstat.monitor.MonitoredHost sun.jvmstat.monitor.MonitoredVm sun.tools.jstat.JStatLogger sun.tools.jstat.OutputFormatter
StackMap stack:
aload 3
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.counterNames:()Ljava/lang/String;
invokeinterface sun.jvmstat.monitor.MonitoredVm.findByPattern:(Ljava/lang/String;)Ljava/util/List;
astore 6
start local 6 12: aload 6
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.comparator:()Ljava/util/Comparator;
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
13: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
start local 7 14: aload 6
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
start local 8 15: goto 27
16: StackMap locals: java.util.List java.util.List java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.jvmstat.monitor.Monitor
astore 9
start local 9 17: aload 9
invokeinterface sun.jvmstat.monitor.Monitor.isSupported:()Z
ifne 20
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.showUnsupported:()Z
ifne 20
18: aload 8
invokeinterface java.util.Iterator.remove:()V
19: goto 27
20: StackMap locals: sun.jvmstat.monitor.Monitor
StackMap stack:
aload 9
invokeinterface sun.jvmstat.monitor.Monitor.getVariability:()Lsun/management/counter/Variability;
getstatic sun.management.counter.Variability.CONSTANT:Lsun/management/counter/Variability;
if_acmpne 24
21: aload 8
invokeinterface java.util.Iterator.remove:()V
22: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.printConstants:()Z
ifeq 27
aload 7
aload 9
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
23: goto 27
StackMap locals:
StackMap stack:
24: aload 9
invokeinterface sun.jvmstat.monitor.Monitor.getUnits:()Lsun/management/counter/Units;
getstatic sun.management.counter.Units.STRING:Lsun/management/counter/Units;
if_acmpne 27
25: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.printStrings:()Z
ifne 27
26: aload 8
invokeinterface java.util.Iterator.remove:()V
end local 9 27: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
end local 8 28: aload 7
invokeinterface java.util.List.isEmpty:()Z
ifne 34
29: aload 4
aload 7
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.isVerbose:()Z
30: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.showUnsupported:()Z
getstatic java.lang.System.out:Ljava/io/PrintStream;
31: invokevirtual sun.tools.jstat.JStatLogger.printList:(Ljava/util/List;ZZLjava/io/PrintStream;)V
32: aload 6
invokeinterface java.util.List.isEmpty:()Z
ifne 34
33: getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
34: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.List.isEmpty:()Z
ifeq 37
35: aload 2
aload 3
invokevirtual sun.jvmstat.monitor.MonitoredHost.detach:(Lsun/jvmstat/monitor/MonitoredVm;)V
36: return
37: StackMap locals:
StackMap stack:
new sun.tools.jstat.RawOutputFormatter
dup
aload 6
38: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.printStrings:()Z
39: invokespecial sun.tools.jstat.RawOutputFormatter.<init>:(Ljava/util/List;Z)V
astore 5
end local 7 end local 6 40: StackMap locals:
StackMap stack:
invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
new sun.tools.jstat.Jstat$1
dup
aload 4
invokespecial sun.tools.jstat.Jstat$1.<init>:(Lsun/tools/jstat/JStatLogger;)V
invokevirtual java.lang.Runtime.addShutdownHook:(Ljava/lang/Thread;)V
41: new sun.tools.jstat.Jstat$2
dup
aload 0
aload 4
aload 2
invokespecial sun.tools.jstat.Jstat$2.<init>:(Lsun/jvmstat/monitor/VmIdentifier;Lsun/tools/jstat/JStatLogger;Lsun/jvmstat/monitor/MonitoredHost;)V
astore 6
start local 6 42: aload 0
invokevirtual sun.jvmstat.monitor.VmIdentifier.getLocalVmId:()I
ifeq 44
43: aload 2
aload 6
invokevirtual sun.jvmstat.monitor.MonitoredHost.addHostListener:(Lsun/jvmstat/monitor/event/HostListener;)V
44: StackMap locals: sun.jvmstat.monitor.event.HostListener
StackMap stack:
aload 4
aload 5
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.headerRate:()I
45: getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.sampleInterval:()I
getstatic sun.tools.jstat.Jstat.arguments:Lsun/tools/jstat/Arguments;
invokevirtual sun.tools.jstat.Arguments.sampleCount:()I
46: getstatic java.lang.System.out:Ljava/io/PrintStream;
47: invokevirtual sun.tools.jstat.JStatLogger.logSamples:(Lsun/tools/jstat/OutputFormatter;IIILjava/io/PrintStream;)V
48: aload 6
ifnull 50
49: aload 2
aload 6
invokevirtual sun.jvmstat.monitor.MonitoredHost.removeHostListener:(Lsun/jvmstat/monitor/event/HostListener;)V
50: StackMap locals:
StackMap stack:
aload 2
aload 3
invokevirtual sun.jvmstat.monitor.MonitoredHost.detach:(Lsun/jvmstat/monitor/MonitoredVm;)V
51: return
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
1 52 0 vmId Lsun/jvmstat/monitor/VmIdentifier;
2 52 1 interval I
4 52 2 monitoredHost Lsun/jvmstat/monitor/MonitoredHost;
5 52 3 monitoredVm Lsun/jvmstat/monitor/MonitoredVm;
6 52 4 logger Lsun/tools/jstat/JStatLogger;
7 52 5 formatter Lsun/tools/jstat/OutputFormatter;
9 10 6 format Lsun/tools/jstat/OptionFormat;
12 40 6 logged Ljava/util/List<Lsun/jvmstat/monitor/Monitor;>;
14 40 7 constants Ljava/util/List<Lsun/jvmstat/monitor/Monitor;>;
15 28 8 i Ljava/util/Iterator;
17 27 9 m Lsun/jvmstat/monitor/Monitor;
42 52 6 terminator Lsun/jvmstat/monitor/event/HostListener;
Exceptions:
throws sun.jvmstat.monitor.MonitorException
}
SourceFile: "Jstat.java"
NestMembers:
sun.tools.jstat.Jstat$1 sun.tools.jstat.Jstat$2
InnerClasses:
sun.tools.jstat.Jstat$1
sun.tools.jstat.Jstat$2