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.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
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: 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;
1: 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
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
1: aload 0
ldc "{"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
2: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.indent:()V
3: aload 1
invokevirtual jdk.jfr.consumer.RecordedEvent.getFields:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 8
StackMap locals: jdk.jfr.internal.tool.PrettyWriter jdk.jfr.consumer.RecordedEvent top java.util.Iterator
StackMap stack:
4: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 2
start local 2 5: aload 2
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
astore 4
start local 4 6: aload 0
aload 1
aload 4
invokevirtual jdk.jfr.internal.tool.PrettyWriter.isZeroDuration:(Ljdk/jfr/consumer/RecordedEvent;Ljava/lang/String;)Z
ifne 8
aload 0
aload 4
invokevirtual jdk.jfr.internal.tool.PrettyWriter.isLateField:(Ljava/lang/String;)Z
ifne 8
7: 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 8: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
9: aload 1
invokevirtual jdk.jfr.consumer.RecordedEvent.getThread:()Ljdk/jfr/consumer/RecordedThread;
ifnull 13
10: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
11: aload 0
ldc "eventThread = "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
12: 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
13: 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 17
14: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
15: aload 0
ldc "stackTrace = "
invokevirtual jdk.jfr.internal.tool.PrettyWriter.print:(Ljava/lang/String;)V
16: 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
17: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.retract:()V
18: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printIndent:()V
19: aload 0
ldc "}"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
20: aload 0
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:()V
21: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 22 1 event Ljdk/jfr/consumer/RecordedEvent;
5 8 2 v Ljdk/jfr/ValueDescriptor;
6 8 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 23
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 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
22: return
23: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isArray:()Z
ifeq 26
24: aload 0
aload 1
checkcast java.lang.Object[]
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printArray:([Ljava/lang/Object;)V
25: return
26: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Double
ifeq 31
27: aload 1
checkcast java.lang.Double
astore 4
start local 4 28: aload 4
invokevirtual java.lang.Double.doubleValue:()D
invokestatic java.lang.Double.isNaN:(D)Z
ifne 29
aload 4
invokevirtual java.lang.Double.doubleValue:()D
ldc -Infinity
dcmpl
ifne 31
29: StackMap locals: java.lang.Double
StackMap stack:
aload 0
ldc "N/A"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
30: return
end local 4 31: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Float
ifeq 36
32: aload 1
checkcast java.lang.Float
astore 4
start local 4 33: aload 4
invokevirtual java.lang.Float.floatValue:()F
invokestatic java.lang.Float.isNaN:(F)Z
ifne 34
aload 4
invokevirtual java.lang.Float.floatValue:()F
ldc -Infinity
fcmpl
ifne 36
34: StackMap locals: java.lang.Float
StackMap stack:
aload 0
ldc "N/A"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
35: return
end local 4 36: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Long
ifeq 41
37: aload 1
checkcast java.lang.Long
astore 4
start local 4 38: aload 4
invokevirtual java.lang.Long.longValue:()J
ldc -9223372036854775808
lcmp
ifne 41
39: aload 0
ldc "N/A"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
40: return
end local 4 41: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Integer
ifeq 46
42: aload 1
checkcast java.lang.Integer
astore 4
start local 4 43: aload 4
invokevirtual java.lang.Integer.intValue:()I
ldc -2147483648
if_icmpne 46
44: aload 0
ldc "N/A"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
45: return
end local 4 46: StackMap locals:
StackMap stack:
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getContentType:()Ljava/lang/String;
ifnull 49
47: aload 0
aload 2
aload 1
invokevirtual jdk.jfr.internal.tool.PrettyWriter.printFormatted:(Ljdk/jfr/ValueDescriptor;Ljava/lang/Object;)Z
ifeq 49
48: return
49: StackMap locals:
StackMap stack:
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
astore 4
start local 4 50: aload 1
instanceof java.lang.String
ifeq 52
51: 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
52: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 4
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
53: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 54 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 54 1 value Ljava/lang/Object;
0 54 2 field Ljdk/jfr/ValueDescriptor;
0 54 3 postFix Ljava/lang/String;
15 18 4 frame Ljdk/jfr/consumer/RecordedFrame;
28 31 4 d Ljava/lang/Double;
33 36 4 f Ljava/lang/Float;
38 41 4 l Ljava/lang/Long;
43 46 4 i Ljava/lang/Integer;
50 54 4 text Ljava/lang/String;
MethodParameters:
Name Flags
value
field
postFix
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
invokevirtual jdk.jfr.internal.tool.PrettyWriter.decodeDescriptors:(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
invokevirtual jdk.jfr.internal.tool.PrettyWriter.decodeDescriptors:(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);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x0000)
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 33
3: StackMap locals: java.util.List int
StackMap stack:
ldc ""
astore 4
start local 4 4: goto 7
5: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 4
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;
astore 4
6: iinc 3 1
7: StackMap locals:
StackMap stack:
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
bipush 91
if_icmpeq 5
8: aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 5
start local 5 9: iload 5
lookupswitch { // 9
66: 28
67: 26
68: 20
70: 22
73: 14
74: 16
76: 10
83: 24
90: 18
default: 30
}
10: StackMap locals: int
StackMap stack:
aload 1
bipush 59
iload 3
invokevirtual java.lang.String.indexOf:(II)I
istore 7
start local 7 11: aload 1
iload 3
iconst_1
iadd
iload 7
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 6
start local 6 12: iload 7
istore 3
13: goto 31
end local 7 end local 6 14: StackMap locals:
StackMap stack:
ldc "int"
astore 6
start local 6 15: goto 31
end local 6 16: StackMap locals:
StackMap stack:
ldc "long"
astore 6
start local 6 17: goto 31
end local 6 18: StackMap locals:
StackMap stack:
ldc "boolean"
astore 6
start local 6 19: goto 31
end local 6 20: StackMap locals:
StackMap stack:
ldc "double"
astore 6
start local 6 21: goto 31
end local 6 22: StackMap locals:
StackMap stack:
ldc "float"
astore 6
start local 6 23: goto 31
end local 6 24: StackMap locals:
StackMap stack:
ldc "short"
astore 6
start local 6 25: goto 31
end local 6 26: StackMap locals:
StackMap stack:
ldc "char"
astore 6
start local 6 27: goto 31
end local 6 28: StackMap locals:
StackMap stack:
ldc "byte"
astore 6
start local 6 29: goto 31
end local 6 30: StackMap locals:
StackMap stack:
ldc "<unknown-descriptor-type>"
astore 6
start local 6 31: StackMap locals: java.lang.String
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
aload 6
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
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 6 end local 5 end local 4 32: iinc 3 1
StackMap locals:
StackMap stack:
33: iload 3
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 3
end local 3 34: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 35 1 descriptor Ljava/lang/String;
1 35 2 descriptors Ljava/util/List<Ljava/lang/String;>;
2 34 3 index I
4 32 4 arrayBrackets Ljava/lang/String;
9 32 5 c C
12 14 6 type Ljava/lang/String;
15 16 6 type Ljava/lang/String;
17 18 6 type Ljava/lang/String;
19 20 6 type Ljava/lang/String;
21 22 6 type Ljava/lang/String;
23 24 6 type Ljava/lang/String;
25 26 6 type Ljava/lang/String;
27 28 6 type Ljava/lang/String;
29 30 6 type Ljava/lang/String;
31 32 6 type Ljava/lang/String;
11 14 7 endIndex I
Signature: (Ljava/lang/String;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
descriptor
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 17
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
invokevirtual java.time.Duration.toNanosPart:()I
i2d
ldc 1.0E9
ddiv
aload 3
invokevirtual java.time.Duration.toSecondsPart:()I
i2d
dadd
dstore 4
start local 4 6: dload 4
dconst_1
dcmpg
ifge 12
7: dload 4
ldc 0.001
dcmpg
ifge 10
8: aload 0
new java.lang.StringBuilder
dup
ldc "%.3f"
iconst_1
anewarray java.lang.Object
dup
iconst_0
dload 4
ldc 1000000.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 " us"
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: goto 16
10: StackMap locals: double
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "%.3f"
iconst_1
anewarray java.lang.Object
dup
iconst_0
dload 4
ldc 1000.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 " ms"
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: goto 16
12: StackMap locals:
StackMap stack:
dload 4
ldc 1000.0
dcmpg
ifge 15
13: aload 0
new java.lang.StringBuilder
dup
ldc "%.3f"
iconst_1
anewarray java.lang.Object
dup
iconst_0
dload 4
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 " s"
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
14: goto 16
15: StackMap locals:
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "%.0f"
iconst_1
anewarray java.lang.Object
dup
iconst_0
dload 4
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 " s"
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
16: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 4 end local 3 17: StackMap locals:
StackMap stack:
aload 2
instanceof java.time.OffsetDateTime
ifeq 24
18: aload 2
checkcast java.time.OffsetDateTime
astore 3
start local 3 19: aload 3
getstatic java.time.OffsetDateTime.MIN:Ljava/time/OffsetDateTime;
invokevirtual java.time.OffsetDateTime.equals:(Ljava/lang/Object;)Z
ifeq 22
20: aload 0
ldc "N/A"
invokevirtual jdk.jfr.internal.tool.PrettyWriter.println:(Ljava/lang/String;)V
21: iconst_1
ireturn
22: 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
23: iconst_1
ireturn
end local 3 24: 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 25: aload 3
ifnull 30
26: aload 2
instanceof java.lang.Number
ifeq 30
27: aload 2
checkcast java.lang.Number
invokevirtual java.lang.Number.doubleValue:()D
dstore 4
start local 4 28: 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
29: iconst_1
ireturn
end local 4 30: 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 31: aload 4
ifnull 48
32: aload 2
instanceof java.lang.Number
ifeq 48
33: aload 2
checkcast java.lang.Number
astore 5
start local 5 34: aload 5
invokevirtual java.lang.Number.longValue:()J
lstore 6
start local 6 35: aload 1
ldc Ljdk/jfr/Frequency;
invokevirtual jdk.jfr.ValueDescriptor.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
ifnull 42
36: aload 4
invokeinterface jdk.jfr.DataAmount.value:()Ljava/lang/String;
ldc "BYTES"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 39
37: 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
38: iconst_1
ireturn
39: 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 48
40: 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
41: iconst_1
ireturn
42: 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 45
43: 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
44: iconst_1
ireturn
45: 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 48
46: 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
47: iconst_1
ireturn
end local 6 end local 5 48: 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 49: aload 5
ifnull 54
50: aload 2
instanceof java.lang.Number
ifeq 54
51: aload 2
checkcast java.lang.Number
invokevirtual java.lang.Number.longValue:()J
lstore 6
start local 6 52: 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
53: iconst_1
ireturn
end local 6 54: 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 55: aload 6
ifnull 59
56: aload 2
instanceof java.lang.Number
ifeq 59
57: 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
58: iconst_1
ireturn
59: 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 60 0 this Ljdk/jfr/internal/tool/PrettyWriter;
0 60 1 field Ljdk/jfr/ValueDescriptor;
0 60 2 value Ljava/lang/Object;
2 17 3 d Ljava/time/Duration;
6 17 4 s D
19 24 3 odt Ljava/time/OffsetDateTime;
25 60 3 percentage Ljdk/jfr/Percentage;
28 30 4 d D
31 60 4 dataAmount Ljdk/jfr/DataAmount;
34 48 5 n Ljava/lang/Number;
35 48 6 amount J
49 60 5 memoryAddress Ljdk/jfr/MemoryAddress;
52 54 6 d J
55 60 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"