public final class jdk.jfr.internal.tool.PrettyWriter extends jdk.jfr.internal.tool.EventPrintWriter
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.tool.PrettyWriter
super_class: jdk.jfr.internal.tool.EventPrintWriter
{
private static final java.time.Duration MILLSECOND;
descriptor: Ljava/time/Duration;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.time.Duration SECOND;
descriptor: Ljava/time/Duration;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.time.Duration MINUTE;
descriptor: Ljava/time/Duration;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String TYPE_OLD_OBJECT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.types.OldObject"
private static final java.time.format.DateTimeFormatter TIME_FORMAT;
descriptor: Ljava/time/format/DateTimeFormatter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.Long ZERO;
descriptor: Ljava/lang/Long;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private boolean showIds;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private jdk.jfr.consumer.RecordedEvent currentEvent;
descriptor: Ljdk/jfr/consumer/RecordedEvent;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: lconst_1
invokestatic java.time.Duration.ofMillis:(J)Ljava/time/Duration;
putstatic jdk.jfr.internal.tool.PrettyWriter.MILLSECOND:Ljava/time/Duration;
1: lconst_1
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
putstatic jdk.jfr.internal.tool.PrettyWriter.SECOND:Ljava/time/Duration;
2: lconst_1
invokestatic java.time.Duration.ofMinutes:(J)Ljava/time/Duration;
putstatic jdk.jfr.internal.tool.PrettyWriter.MINUTE:Ljava/time/Duration;
3: ldc "HH:mm:ss.SSS"
invokestatic java.time.format.DateTimeFormatter.ofPattern:(Ljava/lang/String;)Ljava/time/format/DateTimeFormatter;
putstatic jdk.jfr.internal.tool.PrettyWriter.TIME_FORMAT:Ljava/time/format/DateTimeFormatter;
4: lconst_0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
putstatic jdk.jfr.internal.tool.PrettyWriter.ZERO:Ljava/lang/Long;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.io.PrintWriter);
descriptor: (Ljava/io/PrintWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jdk.jfr.internal.tool.EventPrintWriter.<init>:(Ljava/io/PrintWriter;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 2 1 destination Ljava/io/PrintWriter;
MethodParameters:
Name Flags
destination
protected void print(java.util.List<jdk.jfr.consumer.RecordedEvent>);
descriptor: (Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: jdk.jfr.internal.tool.PrettyWriter java.util.List top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.consumer.RecordedEvent
astore 2
start local 2 2: aload 0
aload 2
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljdk/jfr/consumer/RecordedEvent;)V
3: aload 0
iconst_0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.flush:(Z)V
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 6 1 events Ljava/util/List<Ljdk/jfr/consumer/RecordedEvent;>;
2 4 2 e Ljdk/jfr/consumer/RecordedEvent;
Signature: (Ljava/util/List<Ljdk/jfr/consumer/RecordedEvent;>;)V
MethodParameters:
Name Flags
events
public void printType(jdk.jfr.internal.Type);
descriptor: (Ljdk/jfr/internal/Type;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jfr.internal.tool.PrettyWriter.showIds:Z
ifeq 3
1: aload 0
ldc "// id: "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
2: aload 0
aload 1
invokevirtual jdk.jfr.internal.Type.getId:()J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.jfr.internal.Type.getName:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
bipush 10
iadd
istore 2
start local 2 4: aload 1
invokevirtual jdk.jfr.internal.Type.getName:()Ljava/lang/String;
astore 3
start local 3 5: aload 3
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 4
start local 4 6: iload 4
iconst_m1
if_icmpeq 8
7: aload 0
new java.lang.StringBuilder
dup
ldc "@Name(\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
8: StackMap locals: int java.lang.String int
StackMap stack:
aload 0
iload 2
aload 1
invokevirtual jdk.jfr.internal.Type.getAnnotationElements:()Ljava/util/List;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printAnnotations:(ILjava/util/List;)V
9: aload 0
new java.lang.StringBuilder
dup
ldc "class "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
10: aload 1
invokevirtual jdk.jfr.internal.Type.getSuperType:()Ljava/lang/String;
astore 5
start local 5 11: aload 5
ifnull 13
12: aload 0
new java.lang.StringBuilder
dup
ldc " extends "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
13: StackMap locals: java.lang.String
StackMap stack:
aload 0
ldc " {"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
14: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.indent:()V
15: iconst_1
istore 6
start local 6 16: aload 1
invokevirtual jdk.jfr.internal.Type.getFields:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 20
StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.internal.Type int java.lang.String int java.lang.String int top java.util.Iterator
StackMap stack:
17: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 7
start local 7 18: aload 0
iload 2
aload 7
iload 6
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printField:(ILjdk/jfr/ValueDescriptor;Z)V
19: iconst_0
istore 6
end local 7 20: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 17
21: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.retract:()V
22: aload 0
ldc "}"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
23: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:()V
24: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 25 1 t Ljdk/jfr/internal/Type;
4 25 2 commentIndex I
5 25 3 typeName Ljava/lang/String;
6 25 4 index I
11 25 5 superType Ljava/lang/String;
16 25 6 first Z
18 20 7 v Ljdk/jfr/ValueDescriptor;
MethodParameters:
Name Flags
t
private void printField(int, jdk.jfr.ValueDescriptor, boolean);
descriptor: (ILjdk/jfr/ValueDescriptor;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifne 2
1: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:()V
2: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getAnnotationElements:()Ljava/util/List;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printAnnotations:(ILjava/util/List;)V
3: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
4: invokestatic jdk.jfr.internal.PrivateAccess.getInstance:()Ljdk/jfr/internal/PrivateAccess;
aload 2
invokevirtual jdk.jfr.internal.PrivateAccess.getType:(Ljava/lang/Object;)Ljdk/jfr/internal/Type;
astore 4
start local 4 5: getstatic jdk.jfr.internal.Type.SUPER_TYPE_SETTING:Ljava/lang/String;
aload 4
invokevirtual jdk.jfr.internal.Type.getSuperType:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
6: aload 0
ldc "static "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
7: StackMap locals: jdk.jfr.internal.Type
StackMap stack:
aload 0
aload 0
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getTypeName:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.makeSimpleType:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
8: aload 2
invokevirtual jdk.jfr.ValueDescriptor.isArray:()Z
ifeq 10
9: aload 0
ldc "[]"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
10: StackMap locals:
StackMap stack:
aload 0
ldc " "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
11: aload 0
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
12: aload 0
ldc ";"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
13: aload 0
iload 1
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getTypeId:()J
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printCommentRef:(IJ)V
14: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 15 1 commentIndex I
0 15 2 v Ljdk/jfr/ValueDescriptor;
0 15 3 first Z
5 15 4 vType Ljdk/jfr/internal/Type;
MethodParameters:
Name Flags
commentIndex
v
first
private void (int, long);
descriptor: (IJ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.jfr.internal.tool.PrettyWriter.showIds:Z
ifeq 10
1: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.getColumn:()I
istore 4
start local 4 2: iload 4
iload 1
if_icmple 7
3: aload 0
ldc " "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
4: goto 8
5: StackMap locals: int
StackMap stack:
aload 0
ldc " "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
6: iinc 4 1
7: StackMap locals:
StackMap stack:
iload 4
iload 1
if_icmplt 5
8: StackMap locals:
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc " // id="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 2
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
end local 4 9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:()V
11: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 12 1 commentIndex I
0 12 2 typeId J
2 9 4 column I
MethodParameters:
Name Flags
commentIndex
typeId
private void printAnnotations(int, java.util.List<jdk.jfr.AnnotationElement>);
descriptor: (ILjava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 11
StackMap locals: jdk.jfr.internal.tool.PrettyWriter int java.util.List top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.AnnotationElement
astore 3
start local 3 2: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
3: aload 0
ldc "@"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
4: aload 0
aload 0
aload 3
invokevirtual jdk.jfr.AnnotationElement.getTypeName:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.makeSimpleType:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
5: aload 3
invokevirtual jdk.jfr.AnnotationElement.getValueDescriptors:()Ljava/util/List;
astore 5
start local 5 6: aload 5
invokeinterface java.util.List.isEmpty:()Z
ifne 10
7: aload 0
aload 3
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printAnnotation:(Ljdk/jfr/AnnotationElement;)V
8: aload 0
iload 1
aload 3
invokevirtual jdk.jfr.AnnotationElement.getTypeId:()J
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printCommentRef:(IJ)V
9: goto 11
10: StackMap locals: jdk.jfr.internal.tool.PrettyWriter int java.util.List jdk.jfr.AnnotationElement java.util.Iterator java.util.List
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:()V
end local 5 end local 3 11: StackMap locals: jdk.jfr.internal.tool.PrettyWriter int java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 13 1 commentIndex I
0 13 2 annotations Ljava/util/List<Ljdk/jfr/AnnotationElement;>;
2 11 3 a Ljdk/jfr/AnnotationElement;
6 11 5 vs Ljava/util/List<Ljdk/jfr/ValueDescriptor;>;
Signature: (ILjava/util/List<Ljdk/jfr/AnnotationElement;>;)V
MethodParameters:
Name Flags
commentIndex
annotations
private void printAnnotation(jdk.jfr.AnnotationElement);
descriptor: (Ljdk/jfr/AnnotationElement;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: new java.util.StringJoiner
dup
ldc ", "
ldc "("
ldc ")"
invokespecial java.util.StringJoiner.<init>:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V
astore 2
start local 2 1: aload 1
invokevirtual jdk.jfr.AnnotationElement.getValueDescriptors:()Ljava/util/List;
astore 3
start local 3 2: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 9
StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.AnnotationElement java.util.StringJoiner java.util.List top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 4
start local 4 4: aload 1
aload 4
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
invokevirtual jdk.jfr.AnnotationElement.getValue:(Ljava/lang/String;)Ljava/lang/Object;
astore 6
start local 6 5: aload 3
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 8
aload 4
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
ldc "value"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
6: aload 2
aload 0
aload 6
invokevirtual jdk.jfr.internal.tool.PrettyWriter.textify:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
7: goto 9
8: StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.AnnotationElement java.util.StringJoiner java.util.List jdk.jfr.ValueDescriptor java.util.Iterator java.lang.Object
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
aload 4
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)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 0
aload 6
invokevirtual jdk.jfr.internal.tool.PrettyWriter.textify:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
end local 6 end local 4 9: StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.AnnotationElement java.util.StringJoiner java.util.List top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
10: aload 0
aload 2
invokevirtual java.util.StringJoiner.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 12 1 a Ljdk/jfr/AnnotationElement;
1 12 2 sj Ljava/util/StringJoiner;
2 12 3 vs Ljava/util/List<Ljdk/jfr/ValueDescriptor;>;
4 9 4 v Ljdk/jfr/ValueDescriptor;
5 9 6 o Ljava/lang/Object;
MethodParameters:
Name Flags
a
private java.lang.String textify(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isArray:()Z
ifeq 11
1: aload 1
checkcast java.lang.Object[]
astore 2
start local 2 2: aload 2
arraylength
iconst_1
if_icmpne 4
3: aload 0
aload 2
iconst_0
aaload
invokevirtual jdk.jfr.internal.tool.PrettyWriter.quoteIfNeeded:(Ljava/lang/Object;)Ljava/lang/String;
areturn
4: StackMap locals: java.lang.Object[]
StackMap stack:
new java.util.StringJoiner
dup
ldc ", "
ldc "{"
ldc "}"
invokespecial java.util.StringJoiner.<init>:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V
astore 3
start local 3 5: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 9
StackMap locals: jdk.jfr.internal.tool.PrettyWriter java.lang.Object java.lang.Object[] java.util.StringJoiner top int int java.lang.Object[]
StackMap stack:
6: aload 7
iload 5
aaload
astore 4
start local 4 7: aload 3
aload 0
aload 4
invokevirtual jdk.jfr.internal.tool.PrettyWriter.quoteIfNeeded:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
end local 4 8: iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
iload 6
if_icmplt 6
10: aload 3
invokevirtual java.util.StringJoiner.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 11: StackMap locals: jdk.jfr.internal.tool.PrettyWriter java.lang.Object
StackMap stack:
aload 0
aload 1
invokevirtual jdk.jfr.internal.tool.PrettyWriter.quoteIfNeeded:(Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 12 1 o Ljava/lang/Object;
2 11 2 array [Ljava/lang/Object;
5 11 3 s Ljava/util/StringJoiner;
7 8 4 ob Ljava/lang/Object;
MethodParameters:
Name Flags
o
private java.lang.String quoteIfNeeded(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.String
ifeq 2
1: new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 3 1 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
private java.lang.String makeSimpleType(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 2
start local 2 1: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 2 1 typeName Ljava/lang/String;
1 2 2 index I
MethodParameters:
Name Flags
typeName
public void print(jdk.jfr.consumer.RecordedEvent);
descriptor: (Ljdk/jfr/consumer/RecordedEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.jfr.internal.tool.PrettyWriter.currentEvent:Ljdk/jfr/consumer/RecordedEvent;
1: aload 0
iconst_2
anewarray java.lang.String
dup
iconst_0
aload 1
invokevirtual jdk.jfr.consumer.RecordedEvent.getEventType:()Ljdk/jfr/EventType;
invokevirtual jdk.jfr.EventType.getName:()Ljava/lang/String;
aastore
dup
iconst_1
ldc " "
aastore
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:([Ljava/lang/String;)V
2: aload 0
ldc "{"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
3: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.indent:()V
4: aload 1
invokevirtual jdk.jfr.consumer.RecordedEvent.getFields:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 9
StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.consumer.RecordedEvent top java.util.Iterator
StackMap stack:
5: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 2
start local 2 6: aload 2
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
astore 4
start local 4 7: aload 0
aload 1
aload 4
invokevirtual jdk.jfr.internal.tool.PrettyWriter.isZeroDuration:(Ljdk/jfr/consumer/RecordedEvent;Ljava/lang/String;)Z
ifne 9
aload 0
aload 4
invokevirtual jdk.jfr.internal.tool.PrettyWriter.isLateField:(Ljava/lang/String;)Z
ifne 9
8: aload 0
aload 1
aload 2
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printFieldValue:(Ljdk/jfr/consumer/RecordedObject;Ljdk/jfr/ValueDescriptor;)V
end local 4 end local 2 9: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
10: aload 1
invokevirtual jdk.jfr.consumer.RecordedEvent.getThread:()Ljdk/jfr/consumer/RecordedThread;
ifnull 14
11: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
12: aload 0
ldc "eventThread = "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
13: aload 0
aload 1
invokevirtual jdk.jfr.consumer.RecordedEvent.getThread:()Ljdk/jfr/consumer/RecordedThread;
ldc ""
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printThread:(Ljdk/jfr/consumer/RecordedThread;Ljava/lang/String;)V
14: StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.consumer.RecordedEvent
StackMap stack:
aload 1
invokevirtual jdk.jfr.consumer.RecordedEvent.getStackTrace:()Ljdk/jfr/consumer/RecordedStackTrace;
ifnull 18
15: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
16: aload 0
ldc "stackTrace = "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
17: aload 0
aload 1
invokevirtual jdk.jfr.consumer.RecordedEvent.getStackTrace:()Ljdk/jfr/consumer/RecordedStackTrace;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printStackTrace:(Ljdk/jfr/consumer/RecordedStackTrace;)V
18: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.retract:()V
19: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
20: aload 0
ldc "}"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
21: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:()V
22: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 23 1 event Ljdk/jfr/consumer/RecordedEvent;
6 9 2 v Ljdk/jfr/ValueDescriptor;
7 9 4 name Ljava/lang/String;
MethodParameters:
Name Flags
event
private boolean isZeroDuration(jdk.jfr.consumer.RecordedEvent, java.lang.String);
descriptor: (Ljdk/jfr/consumer/RecordedEvent;Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ldc "duration"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 1
getstatic jdk.jfr.internal.tool.PrettyWriter.ZERO:Ljava/lang/Long;
aload 1
ldc "duration"
invokevirtual jdk.jfr.consumer.RecordedEvent.getValue:(Ljava/lang/String;)Ljava/lang/Object;
invokevirtual java.lang.Long.equals:(Ljava/lang/Object;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 2 1 event Ljdk/jfr/consumer/RecordedEvent;
0 2 2 name Ljava/lang/String;
MethodParameters:
Name Flags
event
name
private void printStackTrace(jdk.jfr.consumer.RecordedStackTrace);
descriptor: (Ljdk/jfr/consumer/RecordedStackTrace;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
ldc "["
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
1: aload 1
invokevirtual jdk.jfr.consumer.RecordedStackTrace.getFrames:()Ljava/util/List;
astore 2
start local 2 2: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.indent:()V
3: iconst_0
istore 3
start local 3 4: goto 11
5: StackMap locals: java.util.List int
StackMap stack:
aload 2
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.jfr.consumer.RecordedFrame
astore 4
start local 4 6: aload 4
invokevirtual jdk.jfr.consumer.RecordedFrame.isJavaFrame:()Z
ifeq 11
7: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
8: aload 0
aload 4
aconst_null
ldc ""
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printValue:(Ljava/lang/Object;Ljdk/jfr/ValueDescriptor;Ljava/lang/String;)V
9: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:()V
10: iinc 3 1
end local 4 11: StackMap locals:
StackMap stack:
iload 3
aload 2
invokeinterface java.util.List.size:()I
if_icmpge 12
iload 3
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.getStackDepth:()I
if_icmplt 5
12: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.jfr.consumer.RecordedStackTrace.isTruncated:()Z
ifne 13
iload 3
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.getStackDepth:()I
if_icmpne 15
13: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
14: aload 0
ldc "..."
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.retract:()V
16: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
17: aload 0
ldc "]"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
18: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 19 1 stackTrace Ljdk/jfr/consumer/RecordedStackTrace;
2 19 2 frames Ljava/util/List<Ljdk/jfr/consumer/RecordedFrame;>;
4 19 3 i I
6 11 4 frame Ljdk/jfr/consumer/RecordedFrame;
MethodParameters:
Name Flags
stackTrace
public void print(jdk.jfr.consumer.RecordedObject, java.lang.String);
descriptor: (Ljdk/jfr/consumer/RecordedObject;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "{"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
1: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.indent:()V
2: aload 1
invokevirtual jdk.jfr.consumer.RecordedObject.getFields:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.consumer.RecordedObject java.lang.String top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 3
start local 3 4: aload 0
aload 1
aload 3
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printFieldValue:(Ljdk/jfr/consumer/RecordedObject;Ljdk/jfr/ValueDescriptor;)V
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.retract:()V
7: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
8: aload 0
new java.lang.StringBuilder
dup
ldc "}"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 10 1 struct Ljdk/jfr/consumer/RecordedObject;
0 10 2 postFix Ljava/lang/String;
4 5 3 v Ljdk/jfr/ValueDescriptor;
MethodParameters:
Name Flags
struct
postFix
private void printFieldValue(jdk.jfr.consumer.RecordedObject, jdk.jfr.ValueDescriptor);
descriptor: (Ljdk/jfr/consumer/RecordedObject;Ljdk/jfr/ValueDescriptor;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
1: aload 0
iconst_2
anewarray java.lang.String
dup
iconst_0
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
aastore
dup
iconst_1
ldc " = "
aastore
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:([Ljava/lang/String;)V
2: aload 0
aload 0
aload 1
aload 2
invokevirtual jdk.jfr.internal.tool.PrettyWriter.getValue:(Ljdk/jfr/consumer/RecordedObject;Ljdk/jfr/ValueDescriptor;)Ljava/lang/Object;
aload 2
ldc ""
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printValue:(Ljava/lang/Object;Ljdk/jfr/ValueDescriptor;Ljava/lang/String;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 4 1 struct Ljdk/jfr/consumer/RecordedObject;
0 4 2 v Ljdk/jfr/ValueDescriptor;
MethodParameters:
Name Flags
struct
v
private void printArray(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ldc "["
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
1: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.indent:()V
2: iconst_0
istore 2
start local 2 3: goto 9
4: StackMap locals: int
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
5: aload 0
aload 1
iload 2
aaload
aconst_null
iload 2
iconst_1
iadd
aload 1
arraylength
if_icmpge 6
ldc ", "
goto 7
StackMap locals: jdk.jfr.internal.tool.PrettyWriter java.lang.Object[] int
StackMap stack: jdk.jfr.internal.tool.PrettyWriter java.lang.Object null
6: ldc ""
StackMap locals: jdk.jfr.internal.tool.PrettyWriter java.lang.Object[] int
StackMap stack: jdk.jfr.internal.tool.PrettyWriter java.lang.Object null java.lang.String
7: invokevirtual jdk.jfr.internal.tool.PrettyWriter.printValue:(Ljava/lang/Object;Ljdk/jfr/ValueDescriptor;Ljava/lang/String;)V
8: iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
aload 1
arraylength
if_icmplt 4
end local 2 10: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.retract:()V
11: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
12: aload 0
ldc "]"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 14 1 array [Ljava/lang/Object;
3 10 2 i I
MethodParameters:
Name Flags
array
private void printValue(java.lang.Object, jdk.jfr.ValueDescriptor, java.lang.String);
descriptor: (Ljava/lang/Object;Ljdk/jfr/ValueDescriptor;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 3
1: aload 0
new java.lang.StringBuilder
dup
ldc "N/A"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
2: return
3: StackMap locals:
StackMap stack:
aload 1
instanceof jdk.jfr.consumer.RecordedObject
ifeq 26
4: aload 1
instanceof jdk.jfr.consumer.RecordedThread
ifeq 7
5: aload 0
aload 1
checkcast jdk.jfr.consumer.RecordedThread
aload 3
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printThread:(Ljdk/jfr/consumer/RecordedThread;Ljava/lang/String;)V
6: return
7: StackMap locals:
StackMap stack:
aload 1
instanceof jdk.jfr.consumer.RecordedClass
ifeq 10
8: aload 0
aload 1
checkcast jdk.jfr.consumer.RecordedClass
aload 3
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printClass:(Ljdk/jfr/consumer/RecordedClass;Ljava/lang/String;)V
9: return
10: StackMap locals:
StackMap stack:
aload 1
instanceof jdk.jfr.consumer.RecordedClassLoader
ifeq 13
11: aload 0
aload 1
checkcast jdk.jfr.consumer.RecordedClassLoader
aload 3
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printClassLoader:(Ljdk/jfr/consumer/RecordedClassLoader;Ljava/lang/String;)V
12: return
13: StackMap locals:
StackMap stack:
aload 1
instanceof jdk.jfr.consumer.RecordedFrame
ifeq 18
14: aload 1
checkcast jdk.jfr.consumer.RecordedFrame
astore 4
start local 4 15: aload 4
invokevirtual jdk.jfr.consumer.RecordedFrame.isJavaFrame:()Z
ifeq 18
16: aload 0
aload 1
checkcast jdk.jfr.consumer.RecordedFrame
aload 3
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printJavaFrame:(Ljdk/jfr/consumer/RecordedFrame;Ljava/lang/String;)V
17: return
end local 4 18: StackMap locals:
StackMap stack:
aload 1
instanceof jdk.jfr.consumer.RecordedMethod
ifeq 21
19: aload 0
aload 0
aload 1
checkcast jdk.jfr.consumer.RecordedMethod
invokevirtual jdk.jfr.internal.tool.PrettyWriter.formatMethod:(Ljdk/jfr/consumer/RecordedMethod;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
20: return
21: StackMap locals:
StackMap stack:
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getTypeName:()Ljava/lang/String;
ldc "jdk.types.OldObject"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 24
22: aload 0
aload 1
checkcast jdk.jfr.consumer.RecordedObject
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printOldObject:(Ljdk/jfr/consumer/RecordedObject;)V
23: return
24: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast jdk.jfr.consumer.RecordedObject
aload 3
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljdk/jfr/consumer/RecordedObject;Ljava/lang/String;)V
25: return
26: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isArray:()Z
ifeq 29
27: aload 0
aload 1
checkcast java.lang.Object[]
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printArray:([Ljava/lang/Object;)V
28: return
29: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Double
ifeq 34
30: aload 1
checkcast java.lang.Double
astore 4
start local 4 31: aload 4
invokevirtual java.lang.Double.doubleValue:()D
invokestatic java.lang.Double.isNaN:(D)Z
ifne 32
aload 4
invokevirtual java.lang.Double.doubleValue:()D
ldc -Infinity
dcmpl
ifne 34
32: StackMap locals: java.lang.Double
StackMap stack:
aload 0
ldc "N/A"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
33: return
end local 4 34: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Float
ifeq 39
35: aload 1
checkcast java.lang.Float
astore 4
start local 4 36: aload 4
invokevirtual java.lang.Float.floatValue:()F
invokestatic java.lang.Float.isNaN:(F)Z
ifne 37
aload 4
invokevirtual java.lang.Float.floatValue:()F
ldc -Infinity
fcmpl
ifne 39
37: StackMap locals: java.lang.Float
StackMap stack:
aload 0
ldc "N/A"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
38: return
end local 4 39: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Long
ifeq 44
40: aload 1
checkcast java.lang.Long
astore 4
start local 4 41: aload 4
invokevirtual java.lang.Long.longValue:()J
ldc -9223372036854775808
lcmp
ifne 44
42: aload 0
ldc "N/A"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
43: return
end local 4 44: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Integer
ifeq 49
45: aload 1
checkcast java.lang.Integer
astore 4
start local 4 46: aload 4
invokevirtual java.lang.Integer.intValue:()I
ldc -2147483648
if_icmpne 49
47: aload 0
ldc "N/A"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
48: return
end local 4 49: StackMap locals:
StackMap stack:
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getContentType:()Ljava/lang/String;
ifnull 52
50: aload 0
aload 2
aload 1
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printFormatted:(Ljdk/jfr/ValueDescriptor;Ljava/lang/Object;)Z
ifeq 52
51: return
52: StackMap locals:
StackMap stack:
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
astore 4
start local 4 53: aload 1
instanceof java.lang.String
ifeq 55
54: new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
55: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 4
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
56: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 57 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 57 1 value Ljava/lang/Object;
0 57 2 field Ljdk/jfr/ValueDescriptor;
0 57 3 postFix Ljava/lang/String;
15 18 4 frame Ljdk/jfr/consumer/RecordedFrame;
31 34 4 d Ljava/lang/Double;
36 39 4 f Ljava/lang/Float;
41 44 4 l Ljava/lang/Long;
46 49 4 i Ljava/lang/Integer;
53 57 4 text Ljava/lang/String;
MethodParameters:
Name Flags
value
field
postFix
private void printOldObject(jdk.jfr.consumer.RecordedObject);
descriptor: (Ljdk/jfr/consumer/RecordedObject;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc " ["
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
1: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.indent:()V
2: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
3: aload 0
aload 1
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printReferenceChain:(Ljdk/jfr/consumer/RecordedObject;)V
4: goto 6
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
5: pop
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.retract:()V
7: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
8: aload 0
ldc "]"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 10 1 object Ljdk/jfr/consumer/RecordedObject;
Exception table:
from to target type
3 4 5 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
object
private void printReferenceChain(jdk.jfr.consumer.RecordedObject);
descriptor: (Ljdk/jfr/consumer/RecordedObject;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=11, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield jdk.jfr.internal.tool.PrettyWriter.currentEvent:Ljdk/jfr/consumer/RecordedEvent;
ldc "arrayElements"
invokevirtual jdk.jfr.consumer.RecordedEvent.getLong:(Ljava/lang/String;)J
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printObject:(Ljdk/jfr/consumer/RecordedObject;J)V
1: aload 1
ldc "referrer"
invokevirtual jdk.jfr.consumer.RecordedObject.getValue:(Ljava/lang/String;)Ljava/lang/Object;
checkcast jdk.jfr.consumer.RecordedObject
astore 2
start local 2 2: goto 24
3: StackMap locals: jdk.jfr.consumer.RecordedObject
StackMap stack:
aload 2
ldc "skip"
invokevirtual jdk.jfr.consumer.RecordedObject.getLong:(Ljava/lang/String;)J
lstore 3
start local 3 4: lload 3
lconst_0
lcmp
ifle 7
5: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
6: aload 0
ldc "..."
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
7: StackMap locals: long
StackMap stack:
ldc ""
astore 5
start local 5 8: ldc -9223372036854775808
lstore 6
start local 6 9: aload 2
ldc "array"
invokevirtual jdk.jfr.consumer.RecordedObject.getValue:(Ljava/lang/String;)Ljava/lang/Object;
checkcast jdk.jfr.consumer.RecordedObject
astore 8
start local 8 10: aload 8
ifnull 14
11: aload 8
ldc "index"
invokevirtual jdk.jfr.consumer.RecordedObject.getLong:(Ljava/lang/String;)J
lstore 9
start local 9 12: aload 8
ldc "size"
invokevirtual jdk.jfr.consumer.RecordedObject.getLong:(Ljava/lang/String;)J
lstore 6
13: new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 9
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
end local 9 14: StackMap locals: java.lang.String long jdk.jfr.consumer.RecordedObject
StackMap stack:
aload 2
ldc "field"
invokevirtual jdk.jfr.consumer.RecordedObject.getValue:(Ljava/lang/String;)Ljava/lang/Object;
checkcast jdk.jfr.consumer.RecordedObject
astore 9
start local 9 15: aload 9
ifnull 17
16: aload 9
ldc "name"
invokevirtual jdk.jfr.consumer.RecordedObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 5
17: StackMap locals: jdk.jfr.consumer.RecordedObject
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
18: aload 0
aload 5
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
19: aload 0
ldc " : "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
20: aload 2
ldc "object"
invokevirtual jdk.jfr.consumer.RecordedObject.getValue:(Ljava/lang/String;)Ljava/lang/Object;
checkcast jdk.jfr.consumer.RecordedObject
astore 1
21: aload 1
ifnull 23
22: aload 0
aload 1
lload 6
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printObject:(Ljdk/jfr/consumer/RecordedObject;J)V
end local 9 end local 8 end local 6 end local 5 end local 3 23: StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.consumer.RecordedObject jdk.jfr.consumer.RecordedObject
StackMap stack:
aload 1
ldc "referrer"
invokevirtual jdk.jfr.consumer.RecordedObject.getValue:(Ljava/lang/String;)Ljava/lang/Object;
checkcast jdk.jfr.consumer.RecordedObject
astore 2
StackMap locals:
StackMap stack:
24: aload 2
ifnonnull 3
end local 2 25: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 26 1 object Ljdk/jfr/consumer/RecordedObject;
2 25 2 ref Ljdk/jfr/consumer/RecordedObject;
4 23 3 skip J
8 23 5 objectHolder Ljava/lang/String;
9 23 6 size J
10 23 8 array Ljdk/jfr/consumer/RecordedObject;
12 14 9 index J
15 23 9 field Ljdk/jfr/consumer/RecordedObject;
MethodParameters:
Name Flags
object
void printObject(jdk.jfr.consumer.RecordedObject, long);
descriptor: (Ljdk/jfr/consumer/RecordedObject;J)V
flags: (0x0000)
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "type"
invokevirtual jdk.jfr.consumer.RecordedObject.getClass:(Ljava/lang/String;)Ljdk/jfr/consumer/RecordedClass;
astore 4
start local 4 1: aload 4
ifnull 12
2: aload 4
invokevirtual jdk.jfr.consumer.RecordedClass.getName:()Ljava/lang/String;
astore 5
start local 5 3: aload 5
ifnull 7
aload 5
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
4: aload 0
aload 5
lload 2
lconst_0
lcmp
ifle 5
lload 2
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
goto 6
StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.consumer.RecordedObject long jdk.jfr.consumer.RecordedClass java.lang.String
StackMap stack: jdk.jfr.internal.tool.PrettyWriter java.lang.String
5: ldc ""
StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.consumer.RecordedObject long jdk.jfr.consumer.RecordedClass java.lang.String
StackMap stack: jdk.jfr.internal.tool.PrettyWriter java.lang.String java.lang.String
6: invokevirtual jdk.jfr.internal.tool.PrettyWriter.decodeDescriptors:(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 5
7: StackMap locals:
StackMap stack:
aload 0
aload 5
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
8: aload 1
ldc "description"
invokevirtual jdk.jfr.consumer.RecordedObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 9: aload 6
ifnull 12
10: aload 0
ldc " "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
11: aload 0
aload 6
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
end local 6 end local 5 12: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:()V
13: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 14 1 object Ljdk/jfr/consumer/RecordedObject;
0 14 2 arraySize J
1 14 4 clazz Ljdk/jfr/consumer/RecordedClass;
3 12 5 className Ljava/lang/String;
9 12 6 description Ljava/lang/String;
MethodParameters:
Name Flags
object
arraySize
private void printClassLoader(jdk.jfr.consumer.RecordedClassLoader, java.lang.String);
descriptor: (Ljdk/jfr/consumer/RecordedClassLoader;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual jdk.jfr.consumer.RecordedClassLoader.getType:()Ljdk/jfr/consumer/RecordedClass;
astore 3
start local 3 1: aload 0
aload 3
ifnonnull 2
ldc "null"
goto 3
StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.consumer.RecordedClassLoader java.lang.String jdk.jfr.consumer.RecordedClass
StackMap stack: jdk.jfr.internal.tool.PrettyWriter
2: aload 3
invokevirtual jdk.jfr.consumer.RecordedClass.getName:()Ljava/lang/String;
StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.consumer.RecordedClassLoader java.lang.String jdk.jfr.consumer.RecordedClass
StackMap stack: jdk.jfr.internal.tool.PrettyWriter java.lang.String
3: invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
4: aload 3
ifnull 9
5: aload 0
ldc " ("
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
6: aload 0
ldc "id = "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
7: aload 0
aload 1
invokevirtual jdk.jfr.consumer.RecordedClassLoader.getId:()J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
8: aload 0
ldc ")"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 10 1 cl Ljdk/jfr/consumer/RecordedClassLoader;
0 10 2 postFix Ljava/lang/String;
1 10 3 clazz Ljdk/jfr/consumer/RecordedClass;
MethodParameters:
Name Flags
cl
postFix
private void printJavaFrame(jdk.jfr.consumer.RecordedFrame, java.lang.String);
descriptor: (Ljdk/jfr/consumer/RecordedFrame;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
invokevirtual jdk.jfr.consumer.RecordedFrame.getMethod:()Ljdk/jfr/consumer/RecordedMethod;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.formatMethod:(Ljdk/jfr/consumer/RecordedMethod;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
1: aload 1
invokevirtual jdk.jfr.consumer.RecordedFrame.getLineNumber:()I
istore 3
start local 3 2: iload 3
iflt 4
3: aload 0
new java.lang.StringBuilder
dup
ldc " line: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
4: StackMap locals: int
StackMap stack:
aload 0
aload 2
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 6 1 f Ljdk/jfr/consumer/RecordedFrame;
0 6 2 postFix Ljava/lang/String;
2 6 3 line I
MethodParameters:
Name Flags
f
postFix
private java.lang.String formatMethod(jdk.jfr.consumer.RecordedMethod);
descriptor: (Ljdk/jfr/consumer/RecordedMethod;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: aload 2
aload 1
invokevirtual jdk.jfr.consumer.RecordedMethod.getType:()Ljdk/jfr/consumer/RecordedClass;
invokevirtual jdk.jfr.consumer.RecordedClass.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 2
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: aload 2
aload 1
invokevirtual jdk.jfr.consumer.RecordedMethod.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 2
ldc "("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: new java.util.StringJoiner
dup
ldc ", "
invokespecial java.util.StringJoiner.<init>:(Ljava/lang/CharSequence;)V
astore 3
start local 3 6: aload 1
invokevirtual jdk.jfr.consumer.RecordedMethod.getDescriptor:()Ljava/lang/String;
ldc "/"
ldc "."
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 4
start local 4 7: aload 4
iconst_1
aload 4
ldc ")"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 8: aload 0
aload 5
ldc ""
invokevirtual jdk.jfr.internal.tool.PrettyWriter.decodeDescriptors:(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 12
StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.consumer.RecordedMethod java.lang.StringBuilder java.util.StringJoiner java.lang.String java.lang.String top java.util.Iterator
StackMap stack:
9: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 10: aload 6
aload 6
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 8
start local 8 11: aload 3
aload 8
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
end local 8 end local 6 12: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
13: aload 2
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
14: aload 2
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 16 1 m Ljdk/jfr/consumer/RecordedMethod;
1 16 2 sb Ljava/lang/StringBuilder;
6 16 3 sj Ljava/util/StringJoiner;
7 16 4 md Ljava/lang/String;
8 16 5 parameter Ljava/lang/String;
10 12 6 qualifiedName Ljava/lang/String;
11 12 8 typeName Ljava/lang/String;
MethodParameters:
Name Flags
m
private void printClass(jdk.jfr.consumer.RecordedClass, java.lang.String);
descriptor: (Ljdk/jfr/consumer/RecordedClass;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual jdk.jfr.consumer.RecordedClass.getClassLoader:()Ljdk/jfr/consumer/RecordedClassLoader;
astore 3
start local 3 1: ldc "null"
astore 4
start local 4 2: aload 3
ifnull 7
3: aload 3
invokevirtual jdk.jfr.consumer.RecordedClassLoader.getName:()Ljava/lang/String;
ifnull 6
4: aload 3
invokevirtual jdk.jfr.consumer.RecordedClassLoader.getName:()Ljava/lang/String;
astore 4
5: goto 7
6: StackMap locals: jdk.jfr.consumer.RecordedClassLoader java.lang.String
StackMap stack:
aload 3
invokevirtual jdk.jfr.consumer.RecordedClassLoader.getType:()Ljdk/jfr/consumer/RecordedClass;
invokevirtual jdk.jfr.consumer.RecordedClass.getName:()Ljava/lang/String;
astore 4
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.jfr.consumer.RecordedClass.getName:()Ljava/lang/String;
astore 5
start local 5 8: aload 5
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 10
9: aload 0
aload 5
ldc ""
invokevirtual jdk.jfr.internal.tool.PrettyWriter.decodeDescriptors:(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 5
10: StackMap locals: java.lang.String
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " (classLoader = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
11: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 12 1 clazz Ljdk/jfr/consumer/RecordedClass;
0 12 2 postFix Ljava/lang/String;
1 12 3 classLoader Ljdk/jfr/consumer/RecordedClassLoader;
2 12 4 classLoaderName Ljava/lang/String;
8 12 5 className Ljava/lang/String;
MethodParameters:
Name Flags
clazz
postFix
java.util.List<java.lang.String> decodeDescriptors(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;
flags: (0x0000)
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 34
3: StackMap locals: java.util.List int
StackMap stack:
ldc ""
astore 5
start local 5 4: goto 8
5: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)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 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
6: ldc ""
astore 2
7: iinc 4 1
8: StackMap locals:
StackMap stack:
aload 1
iload 4
invokevirtual java.lang.String.charAt:(I)C
bipush 91
if_icmpeq 5
9: aload 1
iload 4
invokevirtual java.lang.String.charAt:(I)C
istore 6
start local 6 10: iload 6
lookupswitch { // 9
66: 29
67: 27
68: 21
70: 23
73: 15
74: 17
76: 11
83: 25
90: 19
default: 31
}
11: StackMap locals: int
StackMap stack:
aload 1
bipush 59
iload 4
invokevirtual java.lang.String.indexOf:(II)I
istore 8
start local 8 12: aload 1
iload 4
iconst_1
iadd
iload 8
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 7
start local 7 13: iload 8
istore 4
14: goto 32
end local 8 end local 7 15: StackMap locals:
StackMap stack:
ldc "int"
astore 7
start local 7 16: goto 32
end local 7 17: StackMap locals:
StackMap stack:
ldc "long"
astore 7
start local 7 18: goto 32
end local 7 19: StackMap locals:
StackMap stack:
ldc "boolean"
astore 7
start local 7 20: goto 32
end local 7 21: StackMap locals:
StackMap stack:
ldc "double"
astore 7
start local 7 22: goto 32
end local 7 23: StackMap locals:
StackMap stack:
ldc "float"
astore 7
start local 7 24: goto 32
end local 7 25: StackMap locals:
StackMap stack:
ldc "short"
astore 7
start local 7 26: goto 32
end local 7 27: StackMap locals:
StackMap stack:
ldc "char"
astore 7
start local 7 28: goto 32
end local 7 29: StackMap locals:
StackMap stack:
ldc "byte"
astore 7
start local 7 30: goto 32
end local 7 31: StackMap locals:
StackMap stack:
ldc "<unknown-descriptor-type>"
astore 7
start local 7 32: StackMap locals: java.lang.String
StackMap stack:
aload 3
new java.lang.StringBuilder
dup
aload 7
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 6 end local 5 33: iinc 4 1
StackMap locals:
StackMap stack:
34: iload 4
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 3
end local 4 35: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 36 1 descriptor Ljava/lang/String;
0 36 2 arraySize Ljava/lang/String;
1 36 3 descriptors Ljava/util/List<Ljava/lang/String;>;
2 35 4 index I
4 33 5 arrayBrackets Ljava/lang/String;
10 33 6 c C
13 15 7 type Ljava/lang/String;
16 17 7 type Ljava/lang/String;
18 19 7 type Ljava/lang/String;
20 21 7 type Ljava/lang/String;
22 23 7 type Ljava/lang/String;
24 25 7 type Ljava/lang/String;
26 27 7 type Ljava/lang/String;
28 29 7 type Ljava/lang/String;
30 31 7 type Ljava/lang/String;
32 33 7 type Ljava/lang/String;
12 15 8 endIndex I
Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
descriptor
arraySize
private void printThread(jdk.jfr.consumer.RecordedThread, java.lang.String);
descriptor: (Ljdk/jfr/consumer/RecordedThread;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual jdk.jfr.consumer.RecordedThread.getJavaThreadId:()J
lstore 3
start local 3 1: lload 3
lconst_0
lcmp
ifle 4
2: aload 0
new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual jdk.jfr.consumer.RecordedThread.getJavaName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" (javaThreadId = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual jdk.jfr.consumer.RecordedThread.getJavaThreadId:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
3: goto 5
4: StackMap locals: long
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual jdk.jfr.consumer.RecordedThread.getOSName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" (osThreadId = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual jdk.jfr.consumer.RecordedThread.getOSThreadId:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
5: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 6 1 thread Ljdk/jfr/consumer/RecordedThread;
0 6 2 postFix Ljava/lang/String;
1 6 3 javaThreadId J
MethodParameters:
Name Flags
thread
postFix
private boolean printFormatted(jdk.jfr.ValueDescriptor, java.lang.Object);
descriptor: (Ljdk/jfr/ValueDescriptor;Ljava/lang/Object;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=11, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof java.time.Duration
ifeq 16
1: aload 2
checkcast java.time.Duration
astore 3
start local 3 2: aload 3
invokevirtual java.time.Duration.getSeconds:()J
ldc -9223372036854775808
lcmp
ifne 5
aload 3
invokevirtual java.time.Duration.getNano:()I
ifne 5
3: aload 0
ldc "N/A"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
4: iconst_1
ireturn
5: StackMap locals: java.time.Duration
StackMap stack:
aload 3
getstatic jdk.jfr.internal.tool.PrettyWriter.MILLSECOND:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 8
6: aload 0
ldc "%.3f us"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
invokevirtual java.time.Duration.toNanos:()J
l2d
ldc 1000.0
ddiv
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
7: goto 15
StackMap locals:
StackMap stack:
8: aload 3
getstatic jdk.jfr.internal.tool.PrettyWriter.SECOND:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 11
9: aload 0
ldc "%.3f ms"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
invokevirtual java.time.Duration.toNanos:()J
l2d
ldc 1000000.0
ddiv
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
10: goto 15
StackMap locals:
StackMap stack:
11: aload 3
getstatic jdk.jfr.internal.tool.PrettyWriter.MINUTE:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 14
12: aload 0
ldc "%.3f s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
invokevirtual java.time.Duration.toMillis:()J
l2d
ldc 1000.0
ddiv
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
13: goto 15
14: StackMap locals:
StackMap stack:
aload 0
ldc "%d s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
invokevirtual java.time.Duration.toSeconds:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 3 16: StackMap locals:
StackMap stack:
aload 2
instanceof java.time.OffsetDateTime
ifeq 23
17: aload 2
checkcast java.time.OffsetDateTime
astore 3
start local 3 18: aload 3
getstatic java.time.OffsetDateTime.MIN:Ljava/time/OffsetDateTime;
invokevirtual java.time.OffsetDateTime.equals:(Ljava/lang/Object;)Z
ifeq 21
19: aload 0
ldc "N/A"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
20: iconst_1
ireturn
21: StackMap locals: java.time.OffsetDateTime
StackMap stack:
aload 0
getstatic jdk.jfr.internal.tool.PrettyWriter.TIME_FORMAT:Ljava/time/format/DateTimeFormatter;
aload 3
invokevirtual java.time.format.DateTimeFormatter.format:(Ljava/time/temporal/TemporalAccessor;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
22: iconst_1
ireturn
end local 3 23: StackMap locals:
StackMap stack:
aload 1
ldc Ljdk/jfr/Percentage;
invokevirtual jdk.jfr.ValueDescriptor.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast jdk.jfr.Percentage
astore 3
start local 3 24: aload 3
ifnull 29
25: aload 2
instanceof java.lang.Number
ifeq 29
26: aload 2
checkcast java.lang.Number
invokevirtual java.lang.Number.doubleValue:()D
dstore 4
start local 4 27: aload 0
new java.lang.StringBuilder
dup
ldc "%.2f"
iconst_1
anewarray java.lang.Object
dup
iconst_0
dload 4
ldc 100.0
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "%"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
28: iconst_1
ireturn
end local 4 29: StackMap locals: jdk.jfr.Percentage
StackMap stack:
aload 1
ldc Ljdk/jfr/DataAmount;
invokevirtual jdk.jfr.ValueDescriptor.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast jdk.jfr.DataAmount
astore 4
start local 4 30: aload 4
ifnull 47
31: aload 2
instanceof java.lang.Number
ifeq 47
32: aload 2
checkcast java.lang.Number
astore 5
start local 5 33: aload 5
invokevirtual java.lang.Number.longValue:()J
lstore 6
start local 6 34: aload 1
ldc Ljdk/jfr/Frequency;
invokevirtual jdk.jfr.ValueDescriptor.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
ifnull 41
35: aload 4
invokeinterface jdk.jfr.DataAmount.value:()Ljava/lang/String;
ldc "BYTES"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 38
36: aload 0
lload 6
invokestatic jdk.jfr.internal.Utils.formatBytesPerSecond:(J)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
37: iconst_1
ireturn
38: StackMap locals: jdk.jfr.DataAmount java.lang.Number long
StackMap stack:
aload 4
invokeinterface jdk.jfr.DataAmount.value:()Ljava/lang/String;
ldc "BITS"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 47
39: aload 0
lload 6
invokestatic jdk.jfr.internal.Utils.formatBitsPerSecond:(J)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
40: iconst_1
ireturn
41: StackMap locals:
StackMap stack:
aload 4
invokeinterface jdk.jfr.DataAmount.value:()Ljava/lang/String;
ldc "BYTES"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 44
42: aload 0
lload 6
invokestatic jdk.jfr.internal.Utils.formatBytes:(J)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
43: iconst_1
ireturn
44: StackMap locals:
StackMap stack:
aload 4
invokeinterface jdk.jfr.DataAmount.value:()Ljava/lang/String;
ldc "BITS"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 47
45: aload 0
lload 6
invokestatic jdk.jfr.internal.Utils.formatBits:(J)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
46: iconst_1
ireturn
end local 6 end local 5 47: StackMap locals:
StackMap stack:
aload 1
ldc Ljdk/jfr/MemoryAddress;
invokevirtual jdk.jfr.ValueDescriptor.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast jdk.jfr.MemoryAddress
astore 5
start local 5 48: aload 5
ifnull 53
49: aload 2
instanceof java.lang.Number
ifeq 53
50: aload 2
checkcast java.lang.Number
invokevirtual java.lang.Number.longValue:()J
lstore 6
start local 6 51: aload 0
ldc "0x%08X"
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 6
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
52: iconst_1
ireturn
end local 6 53: StackMap locals: jdk.jfr.MemoryAddress
StackMap stack:
aload 1
ldc Ljdk/jfr/Frequency;
invokevirtual jdk.jfr.ValueDescriptor.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast jdk.jfr.Frequency
astore 6
start local 6 54: aload 6
ifnull 58
55: aload 2
instanceof java.lang.Number
ifeq 58
56: aload 0
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " Hz"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
57: iconst_1
ireturn
58: StackMap locals: jdk.jfr.Frequency
StackMap stack:
iconst_0
ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 59 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 59 1 field Ljdk/jfr/ValueDescriptor;
0 59 2 value Ljava/lang/Object;
2 16 3 d Ljava/time/Duration;
18 23 3 odt Ljava/time/OffsetDateTime;
24 59 3 percentage Ljdk/jfr/Percentage;
27 29 4 d D
30 59 4 dataAmount Ljdk/jfr/DataAmount;
33 47 5 n Ljava/lang/Number;
34 47 6 amount J
48 59 5 memoryAddress Ljdk/jfr/MemoryAddress;
51 53 6 d J
54 59 6 frequency Ljdk/jfr/Frequency;
MethodParameters:
Name Flags
field
value
public void setShowIds(boolean);
descriptor: (Z)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.PrettyWriter.showIds:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 2 1 showIds Z
MethodParameters:
Name Flags
showIds
public void setStackDepth(int);
descriptor: (I)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
iload 1
invokespecial jdk.jfr.internal.tool.EventPrintWriter.setStackDepth:(I)V
return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "PrettyWriter.java"