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 347
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 348
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 349
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 352
aload 0 /* this */
getfield sun.tools.jconsole.SummaryTab$CPUOverviewPanel.prevUpTime:J
lconst_0
lcmp
ifle 13
aload 1 /* result */
getfield sun.tools.jconsole.SummaryTab$Result.upTime:J
aload 0 /* this */
getfield sun.tools.jconsole.SummaryTab$CPUOverviewPanel.prevUpTime:J
lcmp
ifle 13
1: .line 354
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 355
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 360
ldc 99.0
4: .line 361
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 360
invokestatic java.lang.Math.min:(FF)F
6: .line 359
fstore 6 /* cpuUsage */
start local 6 // float cpuUsage
7: .line 363
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
8: .line 364
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
9: .line 363
invokevirtual sun.tools.jconsole.Plotter.addValues:(J[J)V
10: .line 365
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
11: .line 366
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
12: .line 365
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
13: .line 368
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
14: .line 369
aload 0 /* this */
aload 1 /* result */
getfield sun.tools.jconsole.SummaryTab$Result.processCpuTime:J
putfield sun.tools.jconsole.SummaryTab$CPUOverviewPanel.prevProcessCpuTime:J
15: .line 370
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 16 0 this Lsun/tools/jconsole/SummaryTab$CPUOverviewPanel;
0 16 1 result Lsun/tools/jconsole/SummaryTab$Result;
2 13 2 elapsedCpu J
3 13 4 elapsedTime J
7 13 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