public class sun.awt.util.PerformanceLogger
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.awt.util.PerformanceLogger
super_class: java.lang.Object
{
private static final int START_INDEX;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int LAST_RESERVED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static boolean perfLoggingOn;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static boolean useNanoTime;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.util.Vector<sun.awt.util.PerformanceLogger$TimeData> times;
descriptor: Ljava/util/Vector;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Vector<Lsun/awt/util/PerformanceLogger$TimeData;>;
private static java.lang.String logFileName;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.io.Writer logWriter;
descriptor: Ljava/io/Writer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static long baseTime;
descriptor: J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=2, args_size=0
0: iconst_0
putstatic sun.awt.util.PerformanceLogger.perfLoggingOn:Z
1: iconst_0
putstatic sun.awt.util.PerformanceLogger.useNanoTime:Z
2: aconst_null
putstatic sun.awt.util.PerformanceLogger.logFileName:Ljava/lang/String;
3: aconst_null
putstatic sun.awt.util.PerformanceLogger.logWriter:Ljava/io/Writer;
4: new sun.security.action.GetPropertyAction
dup
ldc "sun.perflog"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
5: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
6: astore 0
start local 0 7: aload 0
ifnull 22
8: iconst_1
putstatic sun.awt.util.PerformanceLogger.perfLoggingOn:Z
9: new sun.security.action.GetPropertyAction
dup
ldc "sun.perflog.nano"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
10: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
11: astore 1
start local 1 12: aload 1
ifnull 14
13: iconst_1
putstatic sun.awt.util.PerformanceLogger.useNanoTime:Z
14: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 0
iconst_1
iconst_0
ldc "file:"
iconst_0
iconst_5
invokevirtual java.lang.String.regionMatches:(ZILjava/lang/String;II)Z
ifeq 16
15: aload 0
iconst_5
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
putstatic sun.awt.util.PerformanceLogger.logFileName:Ljava/lang/String;
16: StackMap locals:
StackMap stack:
getstatic sun.awt.util.PerformanceLogger.logFileName:Ljava/lang/String;
ifnull 20
17: getstatic sun.awt.util.PerformanceLogger.logWriter:Ljava/io/Writer;
ifnonnull 20
18: new sun.awt.util.PerformanceLogger$1
dup
invokespecial sun.awt.util.PerformanceLogger$1.<init>:()V
19: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
20: StackMap locals:
StackMap stack:
getstatic sun.awt.util.PerformanceLogger.logWriter:Ljava/io/Writer;
ifnonnull 22
21: new java.io.OutputStreamWriter
dup
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;)V
putstatic sun.awt.util.PerformanceLogger.logWriter:Ljava/io/Writer;
end local 1 22: StackMap locals:
StackMap stack:
new java.util.Vector
dup
bipush 10
invokespecial java.util.Vector.<init>:(I)V
putstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
23: iconst_0
istore 1
start local 1 24: goto 27
25: StackMap locals: int
StackMap stack:
getstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
new sun.awt.util.PerformanceLogger$TimeData
dup
new java.lang.StringBuilder
dup
ldc "Time "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " not set"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
lconst_0
invokespecial sun.awt.util.PerformanceLogger$TimeData.<init>:(Ljava/lang/String;J)V
invokevirtual java.util.Vector.add:(Ljava/lang/Object;)Z
pop
26: iinc 1 1
StackMap locals:
StackMap stack:
27: iload 1
ifle 25
end local 1 end local 0 28: return
LocalVariableTable:
Start End Slot Name Signature
7 28 0 perfLoggingProp Ljava/lang/String;
12 22 1 perfNanoProp Ljava/lang/String;
24 28 1 i I
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/awt/util/PerformanceLogger;
public static boolean loggingEnabled();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.awt.util.PerformanceLogger.perfLoggingOn:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
private static long getCurrentTime();
descriptor: ()J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic sun.awt.util.PerformanceLogger.useNanoTime:Z
ifeq 2
1: invokestatic java.lang.System.nanoTime:()J
lreturn
2: StackMap locals:
StackMap stack:
invokestatic java.lang.System.currentTimeMillis:()J
lreturn
LocalVariableTable:
Start End Slot Name Signature
public static void setStartTime(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: invokestatic sun.awt.util.PerformanceLogger.loggingEnabled:()Z
ifeq 3
1: invokestatic sun.awt.util.PerformanceLogger.getCurrentTime:()J
lstore 1
start local 1 2: aload 0
lload 1
invokestatic sun.awt.util.PerformanceLogger.setStartTime:(Ljava/lang/String;J)V
end local 1 3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 message Ljava/lang/String;
2 3 1 nowTime J
MethodParameters:
Name Flags
message
public static void setBaseTime(long);
descriptor: (J)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic sun.awt.util.PerformanceLogger.loggingEnabled:()Z
ifeq 2
1: lload 0
putstatic sun.awt.util.PerformanceLogger.baseTime:J
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 time J
MethodParameters:
Name Flags
time
public static void setStartTime(java.lang.String, long);
descriptor: (Ljava/lang/String;J)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: invokestatic sun.awt.util.PerformanceLogger.loggingEnabled:()Z
ifeq 2
1: getstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
iconst_0
new sun.awt.util.PerformanceLogger$TimeData
dup
aload 0
lload 1
invokespecial sun.awt.util.PerformanceLogger$TimeData.<init>:(Ljava/lang/String;J)V
invokevirtual java.util.Vector.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 message Ljava/lang/String;
0 3 1 time J
MethodParameters:
Name Flags
message
time
public static long getStartTime();
descriptor: ()J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic sun.awt.util.PerformanceLogger.loggingEnabled:()Z
ifeq 2
1: getstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
iconst_0
invokevirtual java.util.Vector.get:(I)Ljava/lang/Object;
checkcast sun.awt.util.PerformanceLogger$TimeData
invokevirtual sun.awt.util.PerformanceLogger$TimeData.getTime:()J
lreturn
2: StackMap locals:
StackMap stack:
lconst_0
lreturn
LocalVariableTable:
Start End Slot Name Signature
public static int setTime(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: invokestatic sun.awt.util.PerformanceLogger.loggingEnabled:()Z
ifeq 3
1: invokestatic sun.awt.util.PerformanceLogger.getCurrentTime:()J
lstore 1
start local 1 2: aload 0
lload 1
invokestatic sun.awt.util.PerformanceLogger.setTime:(Ljava/lang/String;J)I
ireturn
end local 1 3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 message Ljava/lang/String;
2 3 1 nowTime J
MethodParameters:
Name Flags
message
public static int setTime(java.lang.String, long);
descriptor: (Ljava/lang/String;J)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: invokestatic sun.awt.util.PerformanceLogger.loggingEnabled:()Z
ifeq 7
1: getstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
dup
astore 3
monitorenter
2: getstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
new sun.awt.util.PerformanceLogger$TimeData
dup
aload 0
lload 1
invokespecial sun.awt.util.PerformanceLogger$TimeData.<init>:(Ljava/lang/String;J)V
invokevirtual java.util.Vector.add:(Ljava/lang/Object;)Z
pop
3: getstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
iconst_1
isub
aload 3
monitorexit
4: ireturn
5: StackMap locals: java.lang.String long java.util.Vector
StackMap stack: java.lang.Throwable
aload 3
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 message Ljava/lang/String;
0 8 1 time J
Exception table:
from to target type
2 4 5 any
5 6 5 any
MethodParameters:
Name Flags
message
time
public static long getTimeAtIndex(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic sun.awt.util.PerformanceLogger.loggingEnabled:()Z
ifeq 2
1: getstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
iload 0
invokevirtual java.util.Vector.get:(I)Ljava/lang/Object;
checkcast sun.awt.util.PerformanceLogger$TimeData
invokevirtual sun.awt.util.PerformanceLogger$TimeData.getTime:()J
lreturn
2: StackMap locals:
StackMap stack:
lconst_0
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 index I
MethodParameters:
Name Flags
index
public static java.lang.String getMessageAtIndex(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic sun.awt.util.PerformanceLogger.loggingEnabled:()Z
ifeq 2
1: getstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
iload 0
invokevirtual java.util.Vector.get:(I)Ljava/lang/Object;
checkcast sun.awt.util.PerformanceLogger$TimeData
invokevirtual sun.awt.util.PerformanceLogger$TimeData.getMessage:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 index I
MethodParameters:
Name Flags
index
public static void outputLog(java.io.Writer);
descriptor: (Ljava/io/Writer;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: invokestatic sun.awt.util.PerformanceLogger.loggingEnabled:()Z
ifeq 21
1: getstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
dup
astore 1
monitorenter
2: iconst_0
istore 2
start local 2 3: goto 10
4: StackMap locals: java.util.Vector int
StackMap stack:
getstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
iload 2
invokevirtual java.util.Vector.get:(I)Ljava/lang/Object;
checkcast sun.awt.util.PerformanceLogger$TimeData
astore 3
start local 3 5: aload 3
ifnull 9
6: aload 0
new java.lang.StringBuilder
dup
iload 2
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual sun.awt.util.PerformanceLogger$TimeData.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: aload 3
invokevirtual sun.awt.util.PerformanceLogger$TimeData.getTime:()J
getstatic sun.awt.util.PerformanceLogger.baseTime:J
lsub
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
end local 3 9: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
getstatic sun.awt.util.PerformanceLogger.times:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
if_icmplt 4
end local 2 11: aload 1
monitorexit
12: goto 15
StackMap locals: java.io.Writer java.util.Vector
StackMap stack: java.lang.Throwable
13: aload 1
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.io.Writer.flush:()V
16: goto 21
StackMap locals:
StackMap stack: java.lang.Exception
17: astore 1
start local 1 18: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ": Writing performance log to "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
19: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
20: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 1 21: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 writer Ljava/io/Writer;
3 11 2 i I
5 9 3 td Lsun/awt/util/PerformanceLogger$TimeData;
18 21 1 e Ljava/lang/Exception;
Exception table:
from to target type
2 12 13 any
13 14 13 any
1 16 17 Class java.lang.Exception
MethodParameters:
Name Flags
writer
public static void outputLog();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.awt.util.PerformanceLogger.logWriter:Ljava/io/Writer;
invokestatic sun.awt.util.PerformanceLogger.outputLog:(Ljava/io/Writer;)V
1: return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "PerformanceLogger.java"
NestMembers:
sun.awt.util.PerformanceLogger$1 sun.awt.util.PerformanceLogger$TimeData
InnerClasses:
sun.awt.util.PerformanceLogger$1
TimeData = sun.awt.util.PerformanceLogger$TimeData of sun.awt.util.PerformanceLogger