public final class jdk.nashorn.internal.runtime.Timing implements jdk.nashorn.internal.runtime.logging.Loggable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.Timing
super_class: java.lang.Object
{
private jdk.nashorn.internal.runtime.logging.DebugLogger log;
descriptor: Ljdk/nashorn/internal/runtime/logging/DebugLogger;
flags: (0x0002) ACC_PRIVATE
private jdk.nashorn.internal.runtime.Timing$TimeSupplier timeSupplier;
descriptor: Ljdk/nashorn/internal/runtime/Timing$TimeSupplier;
flags: (0x0002) ACC_PRIVATE
private final boolean isEnabled;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long startTime;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.lang.String LOGGER_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Ljdk/nashorn/internal/runtime/Timing;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.nashorn.internal.runtime.Timing.$assertionsDisabled:Z
3: ldc Ljdk/nashorn/internal/runtime/Timing;
ldc Ljdk/nashorn/internal/runtime/logging/Logger;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast jdk.nashorn.internal.runtime.logging.Logger
invokeinterface jdk.nashorn.internal.runtime.logging.Logger.name:()Ljava/lang/String;
putstatic jdk.nashorn.internal.runtime.Timing.LOGGER_NAME:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield jdk.nashorn.internal.runtime.Timing.isEnabled:Z
2: aload 0
invokestatic java.lang.System.nanoTime:()J
putfield jdk.nashorn.internal.runtime.Timing.startTime:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/runtime/Timing;
0 4 1 isEnabled Z
MethodParameters:
Name Flags
isEnabled final
public java.lang.String getLogInfo();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.nashorn.internal.runtime.Timing.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual jdk.nashorn.internal.runtime.Timing.isEnabled:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.Timing.timeSupplier:Ljdk/nashorn/internal/runtime/Timing$TimeSupplier;
invokevirtual jdk.nashorn.internal.runtime.Timing$TimeSupplier.get:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/Timing;
public java.lang.String[] getLogInfoLines();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.nashorn.internal.runtime.Timing.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual jdk.nashorn.internal.runtime.Timing.isEnabled:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.Timing.timeSupplier:Ljdk/nashorn/internal/runtime/Timing$TimeSupplier;
invokevirtual jdk.nashorn.internal.runtime.Timing$TimeSupplier.getStrings:()[Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/Timing;
boolean isEnabled();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.Timing.isEnabled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/Timing;
public void accumulateTime(java.lang.String, long);
descriptor: (Ljava/lang/String;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual jdk.nashorn.internal.runtime.Timing.isEnabled:()Z
ifeq 3
1: aload 0
invokestatic jdk.nashorn.internal.runtime.Context.getContextTrusted:()Ljdk/nashorn/internal/runtime/Context;
invokevirtual jdk.nashorn.internal.runtime.Timing.ensureInitialized:(Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/internal/runtime/logging/DebugLogger;
pop
2: aload 0
getfield jdk.nashorn.internal.runtime.Timing.timeSupplier:Ljdk/nashorn/internal/runtime/Timing$TimeSupplier;
aload 1
lload 2
invokevirtual jdk.nashorn.internal.runtime.Timing$TimeSupplier.accumulateTime:(Ljava/lang/String;J)V
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/runtime/Timing;
0 4 1 module Ljava/lang/String;
0 4 2 durationNano J
MethodParameters:
Name Flags
module final
durationNano final
private jdk.nashorn.internal.runtime.logging.DebugLogger ensureInitialized(jdk.nashorn.internal.runtime.Context);
descriptor: (Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/internal/runtime/logging/DebugLogger;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.nashorn.internal.runtime.Timing.isEnabled:()Z
ifeq 7
aload 0
getfield jdk.nashorn.internal.runtime.Timing.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
ifnonnull 7
1: aload 0
aload 0
aload 1
invokevirtual jdk.nashorn.internal.runtime.Timing.initLogger:(Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/internal/runtime/logging/DebugLogger;
putfield jdk.nashorn.internal.runtime.Timing.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
2: aload 0
getfield jdk.nashorn.internal.runtime.Timing.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.isEnabled:()Z
ifeq 7
3: aload 0
new jdk.nashorn.internal.runtime.Timing$TimeSupplier
dup
aload 0
invokespecial jdk.nashorn.internal.runtime.Timing$TimeSupplier.<init>:(Ljdk/nashorn/internal/runtime/Timing;)V
putfield jdk.nashorn.internal.runtime.Timing.timeSupplier:Ljdk/nashorn/internal/runtime/Timing$TimeSupplier;
4: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
5: new jdk.nashorn.internal.runtime.Timing$1
dup
aload 0
invokespecial jdk.nashorn.internal.runtime.Timing$1.<init>:(Ljdk/nashorn/internal/runtime/Timing;)V
6: invokevirtual java.lang.Runtime.addShutdownHook:(Ljava/lang/Thread;)V
7: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.Timing.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/nashorn/internal/runtime/Timing;
0 8 1 context Ljdk/nashorn/internal/runtime/Context;
MethodParameters:
Name Flags
context final
static java.lang.String getLoggerName();
descriptor: ()Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.nashorn.internal.runtime.Timing.LOGGER_NAME:Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public jdk.nashorn.internal.runtime.logging.DebugLogger initLogger(jdk.nashorn.internal.runtime.Context);
descriptor: (Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/internal/runtime/logging/DebugLogger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual jdk.nashorn.internal.runtime.Context.getLogger:(Ljava/lang/Class;)Ljdk/nashorn/internal/runtime/logging/DebugLogger;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/Timing;
0 1 1 context Ljdk/nashorn/internal/runtime/Context;
MethodParameters:
Name Flags
context final
public jdk.nashorn.internal.runtime.logging.DebugLogger getLogger();
descriptor: ()Ljdk/nashorn/internal/runtime/logging/DebugLogger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.Timing.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/Timing;
public static java.lang.String toMillisPrint(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
lload 0
invokevirtual java.util.concurrent.TimeUnit.toMillis:(J)J
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 durationNano J
MethodParameters:
Name Flags
durationNano final
}
SourceFile: "Timing.java"
NestMembers:
jdk.nashorn.internal.runtime.Timing$1 jdk.nashorn.internal.runtime.Timing$TimeSupplier
InnerClasses:
jdk.nashorn.internal.runtime.Timing$1
final TimeSupplier = jdk.nashorn.internal.runtime.Timing$TimeSupplier of jdk.nashorn.internal.runtime.Timing
RuntimeVisibleAnnotations:
jdk.nashorn.internal.runtime.logging.Logger(name = "time")