abstract class jdk.jfr.internal.tool.EventPrintWriter extends jdk.jfr.internal.tool.StructuredWriter
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: jdk.jfr.internal.tool.EventPrintWriter
super_class: jdk.jfr.internal.tool.StructuredWriter
{
protected static final java.lang.String STACK_TRACE_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "stackTrace"
protected static final java.lang.String EVENT_THREAD_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "eventThread"
private java.util.function.Predicate<jdk.jfr.EventType> eventFilter;
descriptor: Ljava/util/function/Predicate;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;
private int stackDepth;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.util.Map<jdk.jfr.ValueDescriptor, jdk.jfr.internal.tool.EventPrintWriter$ValueType> typeOfValues;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljdk/jfr/ValueDescriptor;Ljdk/jfr/internal/tool/EventPrintWriter$ValueType;>;
private static volatile int[] $SWITCH_TABLE$jdk$jfr$internal$tool$EventPrintWriter$ValueType;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
void <init>(java.io.PrintWriter);
descriptor: (Ljava/io/PrintWriter;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jdk.jfr.internal.tool.StructuredWriter.<init>:(Ljava/io/PrintWriter;)V
1: aload 0
invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
jdk/jfr/internal/tool/EventPrintWriter.lambda$0(Ljdk/jfr/EventType;)Z (6)
(Ljdk/jfr/EventType;)Z
putfield jdk.jfr.internal.tool.EventPrintWriter.eventFilter:Ljava/util/function/Predicate;
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.jfr.internal.tool.EventPrintWriter.typeOfValues:Ljava/util/Map;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jfr/internal/tool/EventPrintWriter;
0 4 1 p Ljava/io/PrintWriter;
MethodParameters:
Name Flags
p
protected abstract void print(java.util.List<jdk.jfr.consumer.RecordedEvent>);
descriptor: (Ljava/util/List;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (Ljava/util/List<Ljdk/jfr/consumer/RecordedEvent;>;)V
MethodParameters:
Name Flags
events
void print(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
ldc 500000
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: aload 0
invokevirtual jdk.jfr.internal.tool.EventPrintWriter.printBegin:()V
2: aconst_null
astore 3
aconst_null
astore 4
3: new jdk.jfr.consumer.RecordingFile
dup
aload 1
invokespecial jdk.jfr.consumer.RecordingFile.<init>:(Ljava/nio/file/Path;)V
astore 5
start local 5 4: goto 12
5: StackMap locals: jdk.jfr.internal.tool.EventPrintWriter java.nio.file.Path java.util.List java.lang.Throwable java.lang.Throwable jdk.jfr.consumer.RecordingFile
StackMap stack:
aload 5
invokevirtual jdk.jfr.consumer.RecordingFile.readEvent:()Ljdk/jfr/consumer/RecordedEvent;
astore 6
start local 6 6: aload 0
aload 6
invokevirtual jdk.jfr.internal.tool.EventPrintWriter.acceptEvent:(Ljdk/jfr/consumer/RecordedEvent;)Z
ifeq 8
7: aload 2
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: StackMap locals: jdk.jfr.consumer.RecordedEvent
StackMap stack:
getstatic jdk.jfr.internal.consumer.RecordingInternals.INSTANCE:Ljdk/jfr/internal/consumer/RecordingInternals;
aload 5
invokevirtual jdk.jfr.internal.consumer.RecordingInternals.isLastEventInChunk:(Ljdk/jfr/consumer/RecordingFile;)Z
ifeq 12
9: getstatic jdk.jfr.internal.consumer.RecordingInternals.INSTANCE:Ljdk/jfr/internal/consumer/RecordingInternals;
aload 2
invokevirtual jdk.jfr.internal.consumer.RecordingInternals.sort:(Ljava/util/List;)V
10: aload 0
aload 2
invokevirtual jdk.jfr.internal.tool.EventPrintWriter.print:(Ljava/util/List;)V
11: aload 2
invokeinterface java.util.List.clear:()V
end local 6 12: StackMap locals:
StackMap stack:
aload 5
invokevirtual jdk.jfr.consumer.RecordingFile.hasMoreEvents:()Z
ifne 5
13: aload 5
ifnull 19
aload 5
invokevirtual jdk.jfr.consumer.RecordingFile.close:()V
goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 3
aload 5
ifnull 15
aload 5
invokevirtual jdk.jfr.consumer.RecordingFile.close:()V
end local 5 StackMap locals:
StackMap stack:
15: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 4
aload 3
ifnonnull 17
aload 4
astore 3
goto 18
StackMap locals:
StackMap stack:
17: aload 3
aload 4
if_acmpeq 18
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
18: aload 3
athrow
19: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.tool.EventPrintWriter.printEnd:()V
20: aload 0
iconst_1
invokevirtual jdk.jfr.internal.tool.EventPrintWriter.flush:(Z)V
21: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/jfr/internal/tool/EventPrintWriter;
0 22 1 source Ljava/nio/file/Path;
1 22 2 events Ljava/util/List<Ljdk/jfr/consumer/RecordedEvent;>;
4 15 5 file Ljdk/jfr/consumer/RecordingFile;
6 12 6 event Ljdk/jfr/consumer/RecordedEvent;
Exception table:
from to target type
4 13 14 any
3 16 16 any
Exceptions:
throws java.io.FileNotFoundException, java.io.IOException
MethodParameters:
Name Flags
source
protected void printEnd();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/EventPrintWriter;
protected void printBegin();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/EventPrintWriter;
public final void setEventFilter(java.util.function.Predicate<jdk.jfr.EventType>);
descriptor: (Ljava/util/function/Predicate;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.jfr.internal.tool.EventPrintWriter.eventFilter:Ljava/util/function/Predicate;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/EventPrintWriter;
0 2 1 eventFilter Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;
Signature: (Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;)V
MethodParameters:
Name Flags
eventFilter
protected final boolean acceptEvent(jdk.jfr.consumer.RecordedEvent);
descriptor: (Ljdk/jfr/consumer/RecordedEvent;)Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jfr.internal.tool.EventPrintWriter.eventFilter:Ljava/util/function/Predicate;
aload 1
invokevirtual jdk.jfr.consumer.RecordedEvent.getEventType:()Ljdk/jfr/EventType;
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/EventPrintWriter;
0 1 1 event Ljdk/jfr/consumer/RecordedEvent;
MethodParameters:
Name Flags
event
protected final int getStackDepth();
descriptor: ()I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.tool.EventPrintWriter.stackDepth:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/EventPrintWriter;
protected final boolean isLateField(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "eventThread"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 1
aload 1
ldc "stackTrace"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/EventPrintWriter;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public void setStackDepth(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.jfr.internal.tool.EventPrintWriter.stackDepth:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/EventPrintWriter;
0 2 1 stackDepth I
MethodParameters:
Name Flags
stackDepth
protected java.lang.Object getValue(jdk.jfr.consumer.RecordedObject, jdk.jfr.ValueDescriptor);
descriptor: (Ljdk/jfr/consumer/RecordedObject;Ljdk/jfr/ValueDescriptor;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.jfr.internal.tool.EventPrintWriter.typeOfValues:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.jfr.internal.tool.EventPrintWriter$ValueType
astore 3
start local 3 1: aload 3
ifnonnull 4
2: aload 0
aload 2
invokevirtual jdk.jfr.internal.tool.EventPrintWriter.determineValueType:(Ljdk/jfr/ValueDescriptor;)Ljdk/jfr/internal/tool/EventPrintWriter$ValueType;
astore 3
3: aload 0
getfield jdk.jfr.internal.tool.EventPrintWriter.typeOfValues:Ljava/util/Map;
aload 2
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: jdk.jfr.internal.tool.EventPrintWriter$ValueType
StackMap stack:
invokestatic jdk.jfr.internal.tool.EventPrintWriter.$SWITCH_TABLE$jdk$jfr$internal$tool$EventPrintWriter$ValueType:()[I
aload 3
invokevirtual jdk.jfr.internal.tool.EventPrintWriter$ValueType.ordinal:()I
iaload
tableswitch { // 1 - 2
1: 5
2: 6
default: 7
}
5: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
invokevirtual jdk.jfr.consumer.RecordedObject.getDuration:(Ljava/lang/String;)Ljava/time/Duration;
areturn
6: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.consumer.RecordingInternals.INSTANCE:Ljdk/jfr/internal/consumer/RecordingInternals;
aload 1
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.consumer.RecordingInternals.getOffsetDataTime:(Ljdk/jfr/consumer/RecordedObject;Ljava/lang/String;)Ljava/lang/Object;
areturn
7: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
invokevirtual jdk.jfr.consumer.RecordedObject.getValue:(Ljava/lang/String;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jfr/internal/tool/EventPrintWriter;
0 8 1 object Ljdk/jfr/consumer/RecordedObject;
0 8 2 v Ljdk/jfr/ValueDescriptor;
1 8 3 valueType Ljdk/jfr/internal/tool/EventPrintWriter$ValueType;
MethodParameters:
Name Flags
object
v
private jdk.jfr.internal.tool.EventPrintWriter$ValueType determineValueType(jdk.jfr.ValueDescriptor);
descriptor: (Ljdk/jfr/ValueDescriptor;)Ljdk/jfr/internal/tool/EventPrintWriter$ValueType;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc Ljdk/jfr/Timespan;
invokevirtual jdk.jfr.ValueDescriptor.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
ifnull 2
1: getstatic jdk.jfr.internal.tool.EventPrintWriter$ValueType.TIMESPAN:Ljdk/jfr/internal/tool/EventPrintWriter$ValueType;
areturn
2: StackMap locals:
StackMap stack:
aload 1
ldc Ljdk/jfr/Timestamp;
invokevirtual jdk.jfr.ValueDescriptor.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
ifnull 4
3: getstatic jdk.jfr.internal.tool.EventPrintWriter$ValueType.TIMESTAMP:Ljdk/jfr/internal/tool/EventPrintWriter$ValueType;
areturn
4: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.tool.EventPrintWriter$ValueType.OTHER:Ljdk/jfr/internal/tool/EventPrintWriter$ValueType;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jfr/internal/tool/EventPrintWriter;
0 5 1 v Ljdk/jfr/ValueDescriptor;
MethodParameters:
Name Flags
v
static int[] $SWITCH_TABLE$jdk$jfr$internal$tool$EventPrintWriter$ValueType();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic jdk.jfr.internal.tool.EventPrintWriter.$SWITCH_TABLE$jdk$jfr$internal$tool$EventPrintWriter$ValueType:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic jdk.jfr.internal.tool.EventPrintWriter$ValueType.values:()[Ljdk/jfr/internal/tool/EventPrintWriter$ValueType;
arraylength
newarray 10
astore 0
2: aload 0
getstatic jdk.jfr.internal.tool.EventPrintWriter$ValueType.OTHER:Ljdk/jfr/internal/tool/EventPrintWriter$ValueType;
invokevirtual jdk.jfr.internal.tool.EventPrintWriter$ValueType.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic jdk.jfr.internal.tool.EventPrintWriter$ValueType.TIMESPAN:Ljdk/jfr/internal/tool/EventPrintWriter$ValueType;
invokevirtual jdk.jfr.internal.tool.EventPrintWriter$ValueType.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic jdk.jfr.internal.tool.EventPrintWriter$ValueType.TIMESTAMP:Ljdk/jfr/internal/tool/EventPrintWriter$ValueType;
invokevirtual jdk.jfr.internal.tool.EventPrintWriter$ValueType.ordinal:()I
iconst_2
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic jdk.jfr.internal.tool.EventPrintWriter.$SWITCH_TABLE$jdk$jfr$internal$tool$EventPrintWriter$ValueType:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
private static boolean lambda$0(jdk.jfr.EventType);
descriptor: (Ljdk/jfr/EventType;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 x Ljdk/jfr/EventType;
}
SourceFile: "EventPrintWriter.java"
NestMembers:
jdk.jfr.internal.tool.EventPrintWriter$ValueType
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
final ValueType = jdk.jfr.internal.tool.EventPrintWriter$ValueType of jdk.jfr.internal.tool.EventPrintWriter