class sun.tools.jconsole.SummaryTab$CPUOverviewPanel extends sun.tools.jconsole.OverviewPanel
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.tools.jconsole.SummaryTab$CPUOverviewPanel
super_class: sun.tools.jconsole.OverviewPanel
{
private long prevUpTime;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long prevProcessCpuTime;
descriptor: J
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=1, args_size=1
start local 0 // sun.tools.jconsole.SummaryTab$CPUOverviewPanel this
0: .line 367
aload 0 /* this */
getstatic sun.tools.jconsole.Messages.CPU_USAGE:Ljava/lang/String;
ldc "cpu"
getstatic sun.tools.jconsole.Messages.CPU_USAGE:Ljava/lang/String;
getstatic sun.tools.jconsole.Plotter$Unit.PERCENT:Lsun/tools/jconsole/Plotter$Unit;
invokespecial sun.tools.jconsole.OverviewPanel.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lsun/tools/jconsole/Plotter$Unit;)V
1: .line 368
aload 0 /* this */
invokevirtual sun.tools.jconsole.SummaryTab$CPUOverviewPanel.getPlotter:()Lsun/tools/jconsole/Plotter;
iconst_1
invokevirtual sun.tools.jconsole.Plotter.setDecimals:(I)V
2: .line 369
return
end local 0 // sun.tools.jconsole.SummaryTab$CPUOverviewPanel this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/tools/jconsole/SummaryTab$CPUOverviewPanel;
public void updateCPUInfo(sun.tools.jconsole.SummaryTab$Result);
descriptor: (Lsun/tools/jconsole/SummaryTab$Result;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=12, locals=7, args_size=2
start local 0 // sun.tools.jconsole.SummaryTab$CPUOverviewPanel this
start local 1 // sun.tools.jconsole.SummaryTab$Result result
0: .line 372
aload 0 /* this */
getfield sun.tools.jconsole.SummaryTab$CPUOverviewPanel.prevUpTime:J
lconst_0
lcmp
ifle 14
aload 1 /* result */
getfield sun.tools.jconsole.SummaryTab$Result.upTime:J
aload 0 /* this */
getfield sun.tools.jconsole.SummaryTab$CPUOverviewPanel.prevUpTime:J
lcmp
ifle 14
1: .line 374
aload 1 /* result */
getfield sun.tools.jconsole.SummaryTab$Result.processCpuTime:J
aload 0 /* this */
getfield sun.tools.jconsole.SummaryTab$CPUOverviewPanel.prevProcessCpuTime:J
lsub
lstore 2 /* elapsedCpu */
start local 2 // long elapsedCpu
2: .line 375
aload 1 /* result */
getfield sun.tools.jconsole.SummaryTab$Result.upTime:J
aload 0 /* this */
getfield sun.tools.jconsole.SummaryTab$CPUOverviewPanel.prevUpTime:J
lsub
lstore 4 /* elapsedTime */
start local 4 // long elapsedTime
3: .line 380
ldc 99.0
4: .line 381
lload 2 /* elapsedCpu */
l2f
lload 4 /* elapsedTime */
l2f
ldc 10000.0
fmul
aload 1 /* result */
getfield sun.tools.jconsole.SummaryTab$Result.nCPUs:I
i2f
fmul
fdiv
5: .line 380
invokestatic java.lang.Math.min:(FF)F
6: .line 379
fstore 6 /* cpuUsage */
start local 6 // float cpuUsage
7: .line 383
fconst_0
fload 6 /* cpuUsage */
invokestatic java.lang.Math.max:(FF)F
fstore 6 /* cpuUsage */
8: .line 385
aload 0 /* this */
invokevirtual sun.tools.jconsole.SummaryTab$CPUOverviewPanel.getPlotter:()Lsun/tools/jconsole/Plotter;
aload 1 /* result */
getfield sun.tools.jconsole.SummaryTab$Result.timeStamp:J
iconst_1
newarray 11
dup
iconst_0
9: .line 386
fload 6 /* cpuUsage */
f2d
ldc 10.0
dconst_1
invokestatic java.lang.Math.pow:(DD)D
dmul
invokestatic java.lang.Math.round:(D)J
lastore
10: .line 385
invokevirtual sun.tools.jconsole.Plotter.addValues:(J[J)V
11: .line 387
aload 0 /* this */
invokevirtual sun.tools.jconsole.SummaryTab$CPUOverviewPanel.getInfoLabel:()Ljavax/swing/JLabel;
getstatic sun.tools.jconsole.Messages.CPU_USAGE_FORMAT:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
12: .line 388
ldc "%.1f"
iconst_1
anewarray java.lang.Object
dup
iconst_0
fload 6 /* cpuUsage */
invokestatic java.lang.Float.valueOf:(F)Ljava/lang/Float;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aastore
13: .line 387
invokestatic sun.tools.jconsole.Resources.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual javax.swing.JLabel.setText:(Ljava/lang/String;)V
end local 6 // float cpuUsage
end local 4 // long elapsedTime
end local 2 // long elapsedCpu
14: .line 390
StackMap locals:
StackMap stack:
aload 0 /* this */
aload 1 /* result */
getfield sun.tools.jconsole.SummaryTab$Result.upTime:J
putfield sun.tools.jconsole.SummaryTab$CPUOverviewPanel.prevUpTime:J
15: .line 391
aload 0 /* this */
aload 1 /* result */
getfield sun.tools.jconsole.SummaryTab$Result.processCpuTime:J
putfield sun.tools.jconsole.SummaryTab$CPUOverviewPanel.prevProcessCpuTime:J
16: .line 392
return
end local 1 // sun.tools.jconsole.SummaryTab$Result result
end local 0 // sun.tools.jconsole.SummaryTab$CPUOverviewPanel this
LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/tools/jconsole/SummaryTab$CPUOverviewPanel;
0 17 1 result Lsun/tools/jconsole/SummaryTab$Result;
2 14 2 elapsedCpu J
3 14 4 elapsedTime J
7 14 6 cpuUsage F
MethodParameters:
Name Flags
result
}
SourceFile: "SummaryTab.java"
NestHost: sun.tools.jconsole.SummaryTab
InnerClasses:
public final Unit = sun.tools.jconsole.Plotter$Unit of sun.tools.jconsole.Plotter
private CPUOverviewPanel = sun.tools.jconsole.SummaryTab$CPUOverviewPanel of sun.tools.jconsole.SummaryTab
private Result = sun.tools.jconsole.SummaryTab$Result of sun.tools.jconsole.SummaryTab