final class jdk.jfr.internal.tool.Print extends jdk.jfr.internal.tool.Command
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.tool.Print
super_class: jdk.jfr.internal.tool.Command
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.jfr.internal.tool.Command.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/Print;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "print"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/Print;
public java.util.List<java.lang.String> getOptionSyntax();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 1
ldc "[--xml|--json]"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 1
ldc "[--categories <filter>]"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: aload 1
ldc "[--events <filter>]"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 1
ldc "[--stack-depth <depth>]"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 1
ldc "<file>"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jfr/internal/tool/Print;
1 7 1 list Ljava/util/List<Ljava/lang/String;>;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
protected java.lang.String getTitle();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "Print contents of a recording file"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/Print;
public java.lang.String getDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual jdk.jfr.internal.tool.Print.getTitle:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ". See 'jfr help print' for details."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/Print;
public void displayOptionUsage(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc " --xml Print recording in XML format"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: aload 1
invokevirtual java.io.PrintStream.println:()V
2: aload 1
ldc " --json Print recording in JSON format"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: aload 1
invokevirtual java.io.PrintStream.println:()V
4: aload 1
ldc " --categories <filter> Select events matching a category name."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: aload 1
ldc " The filter is a comma-separated list of names,"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: aload 1
ldc " simple and/or qualified, and/or quoted glob patterns"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
7: aload 1
invokevirtual java.io.PrintStream.println:()V
8: aload 1
ldc " --events <filter> Select events matching an event name."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: aload 1
ldc " The filter is a comma-separated list of names,"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: aload 1
ldc " simple and/or qualified, and/or quoted glob patterns"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
11: aload 1
invokevirtual java.io.PrintStream.println:()V
12: aload 1
ldc " --stack-depth <depth> Number of frames in stack traces, by default 5"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: aload 1
invokevirtual java.io.PrintStream.println:()V
14: aload 1
ldc " <file> Location of the recording file (.jfr)"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: aload 1
invokevirtual java.io.PrintStream.println:()V
16: aload 1
invokevirtual java.io.PrintStream.println:()V
17: aload 1
ldc "Example usage:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
18: aload 1
invokevirtual java.io.PrintStream.println:()V
19: aload 1
ldc " jfr print --events OldObjectSample recording.jfr"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
20: aload 1
invokevirtual java.io.PrintStream.println:()V
21: aload 1
ldc " jfr print --events CPULoad,GarbageCollection recording.jfr"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
22: aload 1
invokevirtual java.io.PrintStream.println:()V
23: aload 1
ldc " jfr print --categories \"GC,JVM,Java*\" recording.jfr"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
24: aload 1
invokevirtual java.io.PrintStream.println:()V
25: aload 1
ldc " jfr print --events \"jdk.*\" --stack-depth 64 recording.jfr"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
26: aload 1
invokevirtual java.io.PrintStream.println:()V
27: aload 1
ldc " jfr print --json --events CPULoad recording.jfr"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
28: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Ljdk/jfr/internal/tool/Print;
0 29 1 stream Ljava/io/PrintStream;
MethodParameters:
Name Flags
stream
public void execute(java.util.Deque<java.lang.String>);
descriptor: (Ljava/util/Deque;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=11, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.jfr.internal.tool.Print.getJFRInputFile:(Ljava/util/Deque;)Ljava/nio/file/Path;
astore 2
start local 2 1: new java.io.PrintWriter
dup
getstatic java.lang.System.out:Ljava/io/PrintStream;
iconst_0
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;Z)V
astore 3
start local 3 2: aconst_null
astore 4
start local 4 3: iconst_5
istore 5
start local 5 4: aconst_null
astore 6
start local 6 5: aload 1
invokeinterface java.util.Deque.size:()I
istore 7
start local 7 6: iconst_0
istore 8
start local 8 7: iconst_0
istore 9
start local 9 8: goto 39
9: StackMap locals: jdk.jfr.internal.tool.Print java.util.Deque java.nio.file.Path java.io.PrintWriter java.util.function.Predicate int jdk.jfr.internal.tool.EventPrintWriter int int int
StackMap stack:
aload 0
aload 1
ldc "--events"
invokevirtual jdk.jfr.internal.tool.Print.acceptFilterOption:(Ljava/util/Deque;Ljava/lang/String;)Z
ifeq 16
10: iload 8
ifeq 12
11: new jdk.jfr.internal.tool.UserSyntaxException
dup
ldc "use --events event1,event2,event3 to include multiple events"
invokespecial jdk.jfr.internal.tool.UserSyntaxException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
iconst_1
istore 8
13: aload 1
invokeinterface java.util.Deque.remove:()Ljava/lang/Object;
checkcast java.lang.String
astore 10
start local 10 14: aload 0
ldc "--events"
aload 10
invokevirtual jdk.jfr.internal.tool.Print.warnForWildcardExpansion:(Ljava/lang/String;Ljava/lang/String;)V
15: aload 10
aload 4
invokestatic jdk.jfr.internal.tool.Print.addEventFilter:(Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
astore 4
end local 10 16: StackMap locals:
StackMap stack:
aload 0
aload 1
ldc "--categories"
invokevirtual jdk.jfr.internal.tool.Print.acceptFilterOption:(Ljava/util/Deque;Ljava/lang/String;)Z
ifeq 23
17: iload 9
ifeq 19
18: new jdk.jfr.internal.tool.UserSyntaxException
dup
ldc "use --categories category1,category2 to include multiple categories"
invokespecial jdk.jfr.internal.tool.UserSyntaxException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
iconst_1
istore 9
20: aload 1
invokeinterface java.util.Deque.remove:()Ljava/lang/Object;
checkcast java.lang.String
astore 10
start local 10 21: aload 0
ldc "--categories"
aload 10
invokevirtual jdk.jfr.internal.tool.Print.warnForWildcardExpansion:(Ljava/lang/String;Ljava/lang/String;)V
22: aload 10
aload 4
invokestatic jdk.jfr.internal.tool.Print.addCategoryFilter:(Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
astore 4
end local 10 23: StackMap locals:
StackMap stack:
aload 0
aload 1
ldc "--stack-depth"
invokevirtual jdk.jfr.internal.tool.Print.acceptOption:(Ljava/util/Deque;Ljava/lang/String;)Z
ifeq 30
24: aload 1
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast java.lang.String
astore 10
start local 10 25: aload 10
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 5
26: iload 5
ifge 30
27: new jdk.jfr.internal.tool.UserSyntaxException
dup
ldc "stack depth must be zero or a positive integer."
invokespecial jdk.jfr.internal.tool.UserSyntaxException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals: jdk.jfr.internal.tool.Print java.util.Deque java.nio.file.Path java.io.PrintWriter java.util.function.Predicate int jdk.jfr.internal.tool.EventPrintWriter int int int java.lang.String
StackMap stack: java.lang.NumberFormatException
pop
29: new jdk.jfr.internal.tool.UserSyntaxException
dup
ldc "not a valid value for --stack-depth"
invokespecial jdk.jfr.internal.tool.UserSyntaxException.<init>:(Ljava/lang/String;)V
athrow
end local 10 30: StackMap locals:
StackMap stack:
aload 1
aload 6
ldc "--json"
invokestatic jdk.jfr.internal.tool.Print.acceptFormatterOption:(Ljava/util/Deque;Ljdk/jfr/internal/tool/EventPrintWriter;Ljava/lang/String;)Z
ifeq 32
31: new jdk.jfr.internal.tool.JSONWriter
dup
aload 3
invokespecial jdk.jfr.internal.tool.JSONWriter.<init>:(Ljava/io/PrintWriter;)V
astore 6
32: StackMap locals:
StackMap stack:
aload 1
aload 6
ldc "--xml"
invokestatic jdk.jfr.internal.tool.Print.acceptFormatterOption:(Ljava/util/Deque;Ljdk/jfr/internal/tool/EventPrintWriter;Ljava/lang/String;)Z
ifeq 34
33: new jdk.jfr.internal.tool.XMLWriter
dup
aload 3
invokespecial jdk.jfr.internal.tool.XMLWriter.<init>:(Ljava/io/PrintWriter;)V
astore 6
34: StackMap locals:
StackMap stack:
iload 7
aload 1
invokeinterface java.util.Deque.size:()I
if_icmpne 38
35: aload 0
aload 1
ldc "--event"
ldc "--events"
invokevirtual jdk.jfr.internal.tool.Print.checkCommonError:(Ljava/util/Deque;Ljava/lang/String;Ljava/lang/String;)V
36: aload 0
aload 1
ldc "--category"
ldc "--categories"
invokevirtual jdk.jfr.internal.tool.Print.checkCommonError:(Ljava/util/Deque;Ljava/lang/String;Ljava/lang/String;)V
37: new jdk.jfr.internal.tool.UserSyntaxException
dup
new java.lang.StringBuilder
dup
ldc "unknown option "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial jdk.jfr.internal.tool.UserSyntaxException.<init>:(Ljava/lang/String;)V
athrow
38: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Deque.size:()I
istore 7
39: StackMap locals:
StackMap stack:
iload 7
ifgt 9
40: aload 6
ifnonnull 42
41: new jdk.jfr.internal.tool.PrettyWriter
dup
aload 3
invokespecial jdk.jfr.internal.tool.PrettyWriter.<init>:(Ljava/io/PrintWriter;)V
astore 6
42: StackMap locals:
StackMap stack:
aload 6
iload 5
invokevirtual jdk.jfr.internal.tool.EventPrintWriter.setStackDepth:(I)V
43: aload 4
ifnull 46
44: aload 4
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/jfr/internal/tool/Print.lambda$0(Ljdk/jfr/EventType;)Ljava/lang/Long; (6)
(Ljdk/jfr/EventType;)Ljava/lang/Long;
invokestatic jdk.jfr.internal.tool.Print.addCache:(Ljava/util/function/Predicate;Ljava/util/function/Function;)Ljava/util/function/Predicate;
astore 4
45: aload 6
aload 4
invokevirtual jdk.jfr.internal.tool.EventPrintWriter.setEventFilter:(Ljava/util/function/Predicate;)V
46: StackMap locals:
StackMap stack:
aload 6
aload 2
invokevirtual jdk.jfr.internal.tool.EventPrintWriter.print:(Ljava/nio/file/Path;)V
47: goto 50
StackMap locals:
StackMap stack: java.io.IOException
48: astore 10
start local 10 49: aload 0
aload 2
aload 10
invokevirtual jdk.jfr.internal.tool.Print.couldNotReadError:(Ljava/nio/file/Path;Ljava/io/IOException;)V
end local 10 50: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.PrintWriter.flush:()V
51: return
end local 9 end local 8 end local 7 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 52 0 this Ljdk/jfr/internal/tool/Print;
0 52 1 options Ljava/util/Deque<Ljava/lang/String;>;
1 52 2 file Ljava/nio/file/Path;
2 52 3 pw Ljava/io/PrintWriter;
3 52 4 eventFilter Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;
4 52 5 stackDepth I
5 52 6 eventWriter Ljdk/jfr/internal/tool/EventPrintWriter;
6 52 7 optionCount I
7 52 8 foundEventFilter Z
8 52 9 foundCategoryFilter Z
14 16 10 filter Ljava/lang/String;
21 23 10 filter Ljava/lang/String;
25 30 10 value Ljava/lang/String;
49 50 10 ioe Ljava/io/IOException;
Exception table:
from to target type
25 28 28 Class java.lang.NumberFormatException
46 47 48 Class java.io.IOException
Exceptions:
throws jdk.jfr.internal.tool.UserSyntaxException, jdk.jfr.internal.tool.UserDataException
Signature: (Ljava/util/Deque<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
options
private void checkCommonError(java.util.Deque<java.lang.String>, java.lang.String, java.lang.String);
descriptor: (Ljava/util/Deque;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
aload 1
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: new jdk.jfr.internal.tool.UserSyntaxException
dup
new java.lang.StringBuilder
dup
ldc "unknown option "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ", did you mean "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
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;
invokespecial jdk.jfr.internal.tool.UserSyntaxException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/tool/Print;
0 3 1 options Ljava/util/Deque<Ljava/lang/String;>;
0 3 2 typo Ljava/lang/String;
0 3 3 correct Ljava/lang/String;
Exceptions:
throws jdk.jfr.internal.tool.UserSyntaxException
Signature: (Ljava/util/Deque<Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;)V
MethodParameters:
Name Flags
options
typo
correct
private static boolean acceptFormatterOption(java.util.Deque<java.lang.String>, jdk.jfr.internal.tool.EventPrintWriter, java.lang.String);
descriptor: (Ljava/util/Deque;Ljdk/jfr/internal/tool/EventPrintWriter;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 0
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
1: aload 1
ifnull 3
2: new jdk.jfr.internal.tool.UserSyntaxException
dup
ldc "only one format can be specified at a time"
invokespecial jdk.jfr.internal.tool.UserSyntaxException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Deque.remove:()Ljava/lang/Object;
pop
4: iconst_1
ireturn
5: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 options Ljava/util/Deque<Ljava/lang/String;>;
0 6 1 eventWriter Ljdk/jfr/internal/tool/EventPrintWriter;
0 6 2 expected Ljava/lang/String;
Exceptions:
throws jdk.jfr.internal.tool.UserSyntaxException
Signature: (Ljava/util/Deque<Ljava/lang/String;>;Ljdk/jfr/internal/tool/EventPrintWriter;Ljava/lang/String;)Z
MethodParameters:
Name Flags
options
eventWriter
expected
private static <T, X> java.util.function.Predicate<T> addCache(java.util.function.Predicate<T>, java.util.function.Function<T, X>);
descriptor: (Ljava/util/function/Predicate;Ljava/util/function/Function;)Ljava/util/function/Predicate;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2
start local 2 1: aload 2
aload 1
aload 0
invokedynamic test(Ljava/util/Map;Ljava/util/function/Function;Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
jdk/jfr/internal/tool/Print.lambda$1(Ljava/util/Map;Ljava/util/function/Function;Ljava/util/function/Predicate;Ljava/lang/Object;)Z (6)
(Ljava/lang/Object;)Z
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 filter Ljava/util/function/Predicate<TT;>;
0 2 1 cacheFunction Ljava/util/function/Function<TT;TX;>;
1 2 2 cache Ljava/util/Map<TX;Ljava/lang/Boolean;>;
Signature: <T:Ljava/lang/Object;X:Ljava/lang/Object;>(Ljava/util/function/Predicate<TT;>;Ljava/util/function/Function<TT;TX;>;)Ljava/util/function/Predicate<TT;>;
MethodParameters:
Name Flags
filter final
cacheFunction
private static <T> java.util.function.Predicate<T> recurseIfPossible(java.util.function.Predicate<T>);
descriptor: (Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic test(Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
jdk/jfr/internal/tool/Print.lambda$3(Ljava/util/function/Predicate;Ljava/lang/Object;)Z (6)
(Ljava/lang/Object;)Z
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 filter Ljava/util/function/Predicate<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/function/Predicate<TT;>;)Ljava/util/function/Predicate<TT;>;
MethodParameters:
Name Flags
filter
private static java.util.function.Predicate<jdk.jfr.EventType> addCategoryFilter(java.lang.String, java.util.function.Predicate<jdk.jfr.EventType>);
descriptor: (Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.jfr.internal.tool.Print.explodeFilter:(Ljava/lang/String;)Ljava/util/List;
astore 2
start local 2 1: aload 2
invokedynamic test(Ljava/util/List;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
jdk/jfr/internal/tool/Print.lambda$4(Ljava/util/List;Ljdk/jfr/EventType;)Z (6)
(Ljdk/jfr/EventType;)Z
invokestatic jdk.jfr.internal.tool.Print.recurseIfPossible:(Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
astore 3
start local 3 2: aload 1
ifnonnull 3
aload 3
goto 4
StackMap locals: java.util.List java.util.function.Predicate
StackMap stack:
3: aload 1
aload 3
invokeinterface java.util.function.Predicate.or:(Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
StackMap locals:
StackMap stack: java.util.function.Predicate
4: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 filterText Ljava/lang/String;
0 5 1 eventFilter Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;
1 5 2 filters Ljava/util/List<Ljava/lang/String;>;
2 5 3 newFilter Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;
Exceptions:
throws jdk.jfr.internal.tool.UserSyntaxException
Signature: (Ljava/lang/String;Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;)Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;
MethodParameters:
Name Flags
filterText
eventFilter
private static java.lang.String acronomify(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: ldc ""
astore 2
start local 2 2: aload 0
invokevirtual java.lang.String.toCharArray:()[C
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 9
StackMap locals: java.lang.String int java.lang.String top int int char[]
StackMap stack:
3: aload 6
iload 4
caload
istore 3
start local 3 4: iload 1
ifeq 7
5: iload 3
invokestatic java.lang.Character.isAlphabetic:(I)Z
ifeq 7
iload 3
invokestatic java.lang.Character.isUpperCase:(C)Z
ifeq 7
6: new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
7: StackMap locals: java.lang.String int java.lang.String int int int char[]
StackMap stack:
iload 3
invokestatic java.lang.Character.isWhitespace:(C)Z
istore 1
end local 3 8: iinc 4 1
StackMap locals: java.lang.String int java.lang.String top int int char[]
StackMap stack:
9: iload 4
iload 5
if_icmplt 3
10: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 multipleWords Ljava/lang/String;
1 11 1 newWord Z
2 11 2 acronym Ljava/lang/String;
4 8 3 c C
MethodParameters:
Name Flags
multipleWords
private static java.util.function.Predicate<jdk.jfr.EventType> addEventFilter(java.lang.String, java.util.function.Predicate<jdk.jfr.EventType>);
descriptor: (Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.jfr.internal.tool.Print.explodeFilter:(Ljava/lang/String;)Ljava/util/List;
astore 2
start local 2 1: aload 2
invokedynamic test(Ljava/util/List;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
jdk/jfr/internal/tool/Print.lambda$5(Ljava/util/List;Ljdk/jfr/EventType;)Z (6)
(Ljdk/jfr/EventType;)Z
invokestatic jdk.jfr.internal.tool.Print.recurseIfPossible:(Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
astore 3
start local 3 2: aload 1
ifnonnull 3
aload 3
goto 4
StackMap locals: java.util.List java.util.function.Predicate
StackMap stack:
3: aload 1
aload 3
invokeinterface java.util.function.Predicate.or:(Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
StackMap locals:
StackMap stack: java.util.function.Predicate
4: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 filterText Ljava/lang/String;
0 5 1 eventFilter Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;
1 5 2 filters Ljava/util/List<Ljava/lang/String;>;
2 5 3 newFilter Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;
Exceptions:
throws jdk.jfr.internal.tool.UserSyntaxException
Signature: (Ljava/lang/String;Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;)Ljava/util/function/Predicate<Ljdk/jfr/EventType;>;
MethodParameters:
Name Flags
filterText
eventFilter final
private static boolean match(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
ifne 3
1: aload 0
invokevirtual java.lang.String.length:()I
ifne 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 42
if_icmpne 12
4: aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
5: iconst_0
istore 2
start local 2 6: goto 10
7: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
aload 1
invokestatic jdk.jfr.internal.tool.Print.match:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 9
8: iconst_1
ireturn
9: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmple 7
end local 2 11: goto 18
StackMap locals:
StackMap stack:
12: aload 0
invokevirtual java.lang.String.length:()I
ifne 14
13: iconst_0
ireturn
14: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 63
if_icmpne 16
15: aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic jdk.jfr.internal.tool.Print.match:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
16: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
if_icmpne 18
17: aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic jdk.jfr.internal.tool.Print.match:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
18: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 text Ljava/lang/String;
0 19 1 filter Ljava/lang/String;
6 11 2 n I
MethodParameters:
Name Flags
text
filter
private static java.util.List<java.lang.String> explodeFilter(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: java.lang.String java.util.List top int int java.lang.String[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 2
4: aload 2
invokevirtual java.lang.String.isEmpty:()Z
ifne 6
5: aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 6: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 2
8: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 filter Ljava/lang/String;
1 9 1 list Ljava/util/List<Ljava/lang/String;>;
3 6 2 s Ljava/lang/String;
Exceptions:
throws jdk.jfr.internal.tool.UserSyntaxException
Signature: (Ljava/lang/String;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
filter
private static java.lang.Long lambda$0(jdk.jfr.EventType);
descriptor: (Ljdk/jfr/EventType;)Ljava/lang/Long;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.jfr.EventType.getId:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 eventType Ljdk/jfr/EventType;
private static boolean lambda$1(java.util.Map, java.util.function.Function, java.util.function.Predicate, java.lang.Object);
descriptor: (Ljava/util/Map;Ljava/util/function/Function;Ljava/util/function/Predicate;Ljava/lang/Object;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
start local 3 0: aload 0
aload 1
aload 3
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
aload 2
aload 3
invokedynamic apply(Ljava/util/function/Predicate;Ljava/lang/Object;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/jfr/internal/tool/Print.lambda$2(Ljava/util/function/Predicate;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean; (6)
(Ljava/lang/Object;)Ljava/lang/Boolean;
invokeinterface java.util.Map.computeIfAbsent:(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ireturn
end local 3 LocalVariableTable:
Start End Slot Name Signature
0 1 3 t TT;
private static boolean lambda$3(java.util.function.Predicate, java.lang.Object);
descriptor: (Ljava/util/function/Predicate;Ljava/lang/Object;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
ifnull 1
aload 0
aload 1
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 x TT;
private static boolean lambda$4(java.util.List, jdk.jfr.EventType);
descriptor: (Ljava/util/List;Ljdk/jfr/EventType;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=6, args_size=2
start local 1 0: aload 1
invokevirtual jdk.jfr.EventType.getCategoryNames:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 9
StackMap locals: java.util.List jdk.jfr.EventType top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 2: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 8
StackMap locals: java.util.List jdk.jfr.EventType java.lang.String java.util.Iterator top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 4: aload 2
aload 4
invokestatic jdk.jfr.internal.tool.Print.match:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 6
5: iconst_1
ireturn
6: StackMap locals: java.util.List jdk.jfr.EventType java.lang.String java.util.Iterator java.lang.String java.util.Iterator
StackMap stack:
aload 2
ldc " "
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 8
aload 2
invokestatic jdk.jfr.internal.tool.Print.acronomify:(Ljava/lang/String;)Ljava/lang/String;
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: iconst_1
ireturn
end local 4 8: StackMap locals: java.util.List jdk.jfr.EventType java.lang.String java.util.Iterator top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
end local 2 9: StackMap locals: java.util.List jdk.jfr.EventType top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
10: iconst_0
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 11 1 eventType Ljdk/jfr/EventType;
2 9 2 category Ljava/lang/String;
4 8 4 filter Ljava/lang/String;
private static boolean lambda$5(java.util.List, jdk.jfr.EventType);
descriptor: (Ljava/util/List;Ljdk/jfr/EventType;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=6, args_size=2
start local 1 0: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 8
StackMap locals: java.util.List jdk.jfr.EventType top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 2: aload 1
invokevirtual jdk.jfr.EventType.getName:()Ljava/lang/String;
astore 4
start local 4 3: aload 4
aload 2
invokestatic jdk.jfr.internal.tool.Print.match:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 5
4: iconst_1
ireturn
5: StackMap locals: java.util.List jdk.jfr.EventType java.lang.String java.util.Iterator java.lang.String
StackMap stack:
aload 4
aload 4
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 5
start local 5 6: aload 5
aload 2
invokestatic jdk.jfr.internal.tool.Print.match:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 8
7: iconst_1
ireturn
end local 5 end local 4 end local 2 8: StackMap locals: java.util.List jdk.jfr.EventType top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
9: iconst_0
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 10 1 eventType Ljdk/jfr/EventType;
2 8 2 filter Ljava/lang/String;
3 8 4 fullEventName Ljava/lang/String;
6 8 5 eventName Ljava/lang/String;
private static java.lang.Boolean lambda$2(java.util.function.Predicate, java.lang.Object, java.lang.Object);
descriptor: (Ljava/util/function/Predicate;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 0
aload 1
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 x TX;
}
SourceFile: "Print.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles