final class jdk.jfr.internal.dcmd.DCmdCheck extends jdk.jfr.internal.dcmd.AbstractDCmd
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.dcmd.DCmdCheck
super_class: jdk.jfr.internal.dcmd.AbstractDCmd
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.jfr.internal.dcmd.AbstractDCmd.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/dcmd/DCmdCheck;
public java.lang.String execute(java.lang.String, java.lang.Boolean);
descriptor: (Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.executeInternal:(Ljava/lang/String;Ljava/lang/Boolean;)V
1: aload 0
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.getResult:()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/dcmd/DCmdCheck;
0 2 1 recordingText Ljava/lang/String;
0 2 2 verbose Ljava/lang/Boolean;
Exceptions:
throws jdk.jfr.internal.dcmd.DCmdException
MethodParameters:
Name Flags
recordingText
verbose
private void executeInternal(java.lang.String, java.lang.Boolean);
descriptor: (Ljava/lang/String;Ljava/lang/Boolean;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.jfr.internal.LogTag.JFR_DCMD:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.DEBUG:Ljdk/jfr/internal/LogLevel;
invokestatic jdk.jfr.internal.Logger.shouldLog:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;)Z
ifeq 2
1: getstatic jdk.jfr.internal.LogTag.JFR_DCMD:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.DEBUG:Ljdk/jfr/internal/LogLevel;
new java.lang.StringBuilder
dup
ldc "Executing DCmdCheck: name="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ", verbose="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 2
ifnonnull 4
3: getstatic java.lang.Boolean.FALSE:Ljava/lang/Boolean;
astore 2
4: StackMap locals:
StackMap stack:
aload 1
ifnull 7
5: aload 0
aload 0
aload 1
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.findRecording:(Ljava/lang/String;)Ljdk/jfr/Recording;
aload 2
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.printRecording:(Ljdk/jfr/Recording;Z)V
6: return
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.getRecordings:()Ljava/util/List;
astore 3
start local 3 8: aload 2
invokevirtual java.lang.Boolean.booleanValue:()Z
ifne 13
aload 3
invokeinterface java.util.List.isEmpty:()Z
ifeq 13
9: aload 0
ldc "No available recordings."
iconst_0
anewarray java.lang.Object
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.println:(Ljava/lang/String;[Ljava/lang/Object;)V
10: aload 0
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.println:()V
11: aload 0
new java.lang.StringBuilder
dup
ldc "Use jcmd "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.getPid:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " JFR.start to start a recording."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.println:(Ljava/lang/String;[Ljava/lang/Object;)V
12: return
13: StackMap locals: java.util.List
StackMap stack:
iconst_1
istore 4
start local 4 14: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 22
StackMap locals: jdk.jfr.internal.dcmd.DCmdCheck java.lang.String java.lang.Boolean java.util.List int top java.util.Iterator
StackMap stack:
15: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.Recording
astore 5
start local 5 16: iload 4
ifne 20
17: aload 0
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.println:()V
18: getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
aload 2
invokevirtual java.lang.Boolean.equals:(Ljava/lang/Object;)Z
ifeq 20
19: aload 0
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.println:()V
20: StackMap locals: jdk.jfr.internal.dcmd.DCmdCheck java.lang.String java.lang.Boolean java.util.List int jdk.jfr.Recording java.util.Iterator
StackMap stack:
iconst_0
istore 4
21: aload 0
aload 5
aload 2
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.printRecording:(Ljdk/jfr/Recording;Z)V
end local 5 22: StackMap locals: jdk.jfr.internal.dcmd.DCmdCheck java.lang.String java.lang.Boolean java.util.List int top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
23: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljdk/jfr/internal/dcmd/DCmdCheck;
0 24 1 name Ljava/lang/String;
0 24 2 verbose Ljava/lang/Boolean;
8 24 3 recordings Ljava/util/List<Ljdk/jfr/Recording;>;
14 24 4 first Z
16 22 5 recording Ljdk/jfr/Recording;
Exceptions:
throws jdk.jfr.internal.dcmd.DCmdException
MethodParameters:
Name Flags
name
verbose
private void printRecording(jdk.jfr.Recording, boolean);
descriptor: (Ljdk/jfr/Recording;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.printGeneral:(Ljdk/jfr/Recording;)V
1: iload 2
ifeq 4
2: aload 0
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.println:()V
3: aload 0
aload 1
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.printSettings:(Ljdk/jfr/Recording;)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jfr/internal/dcmd/DCmdCheck;
0 5 1 recording Ljdk/jfr/Recording;
0 5 2 verbose Z
MethodParameters:
Name Flags
recording
verbose
private void printGeneral(jdk.jfr.Recording);
descriptor: (Ljdk/jfr/Recording;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
ldc "Recording "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual jdk.jfr.Recording.getId:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ": name="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual jdk.jfr.Recording.getName:()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.dcmd.DCmdCheck.print:(Ljava/lang/String;)V
1: aload 1
invokevirtual jdk.jfr.Recording.getDuration:()Ljava/time/Duration;
astore 2
start local 2 2: aload 2
ifnull 5
3: aload 0
ldc " duration="
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.print:(Ljava/lang/String;)V
4: aload 0
aload 2
ldc ""
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.printTimespan:(Ljava/time/Duration;Ljava/lang/String;)V
5: StackMap locals: java.time.Duration
StackMap stack:
aload 1
invokevirtual jdk.jfr.Recording.getMaxSize:()J
lstore 3
start local 3 6: lload 3
lconst_0
lcmp
ifeq 9
7: aload 0
ldc " maxsize="
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.print:(Ljava/lang/String;)V
8: aload 0
lload 3
invokestatic jdk.jfr.internal.Utils.formatBytesCompact:(J)Ljava/lang/String;
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.print:(Ljava/lang/String;)V
9: StackMap locals: long
StackMap stack:
aload 1
invokevirtual jdk.jfr.Recording.getMaxAge:()Ljava/time/Duration;
astore 5
start local 5 10: aload 5
ifnull 13
11: aload 0
ldc " maxage="
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.print:(Ljava/lang/String;)V
12: aload 0
aload 5
ldc ""
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.printTimespan:(Ljava/time/Duration;Ljava/lang/String;)V
13: StackMap locals: java.time.Duration
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc " ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual jdk.jfr.Recording.getState:()Ljdk/jfr/RecordingState;
invokevirtual jdk.jfr.RecordingState.toString:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
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.dcmd.DCmdCheck.print:(Ljava/lang/String;)V
14: aload 0
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.println:()V
15: return
end local 5 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/dcmd/DCmdCheck;
0 16 1 recording Ljdk/jfr/Recording;
2 16 2 duration Ljava/time/Duration;
6 16 3 maxSize J
10 16 5 maxAge Ljava/time/Duration;
MethodParameters:
Name Flags
recording
private void printSettings(jdk.jfr.Recording);
descriptor: (Ljdk/jfr/Recording;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jfr.Recording.getSettings:()Ljava/util/Map;
astore 2
start local 2 1: aload 0
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.getFlightRecorder:()Ljdk/jfr/FlightRecorder;
invokevirtual jdk.jfr.FlightRecorder.getEventTypes:()Ljava/util/List;
invokestatic jdk.jfr.internal.dcmd.DCmdCheck.sortByEventPath:(Ljava/util/Collection;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 16
StackMap locals: jdk.jfr.internal.dcmd.DCmdCheck jdk.jfr.Recording java.util.Map top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.EventType
astore 3
start local 3 3: new java.util.StringJoiner
dup
ldc ","
ldc "["
ldc "]"
invokespecial java.util.StringJoiner.<init>:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V
astore 5
start local 5 4: aload 5
ldc ""
invokevirtual java.util.StringJoiner.setEmptyValue:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
5: aload 3
invokevirtual jdk.jfr.EventType.getSettingDescriptors:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 10
StackMap locals: jdk.jfr.internal.dcmd.DCmdCheck jdk.jfr.Recording java.util.Map jdk.jfr.EventType java.util.Iterator java.util.StringJoiner top java.util.Iterator
StackMap stack:
6: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.SettingDescriptor
astore 6
start local 6 7: new java.lang.StringBuilder
dup
aload 3
invokevirtual jdk.jfr.EventType.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 6
invokevirtual jdk.jfr.SettingDescriptor.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 8
start local 8 8: aload 2
aload 8
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 10
9: aload 5
new java.lang.StringBuilder
dup
aload 6
invokevirtual jdk.jfr.SettingDescriptor.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 2
aload 8
invokeinterface java.util.Map.get:(Ljava/lang/Object;)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;
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
end local 8 end local 6 10: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
11: aload 5
invokevirtual java.util.StringJoiner.toString:()Ljava/lang/String;
astore 6
start local 6 12: aload 6
invokevirtual java.lang.String.isEmpty:()Z
ifne 16
13: aload 0
ldc " %s (%s)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 3
invokevirtual jdk.jfr.EventType.getLabel:()Ljava/lang/String;
aastore
dup
iconst_1
aload 3
invokevirtual jdk.jfr.EventType.getName:()Ljava/lang/String;
aastore
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.print:(Ljava/lang/String;[Ljava/lang/Object;)V
14: aload 0
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.println:()V
15: aload 0
new java.lang.StringBuilder
dup
ldc " "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokevirtual jdk.jfr.internal.dcmd.DCmdCheck.println:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 6 end local 5 end local 3 16: StackMap locals: jdk.jfr.internal.dcmd.DCmdCheck jdk.jfr.Recording java.util.Map top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
17: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/jfr/internal/dcmd/DCmdCheck;
0 18 1 recording Ljdk/jfr/Recording;
1 18 2 settings Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
3 16 3 eventType Ljdk/jfr/EventType;
4 16 5 sj Ljava/util/StringJoiner;
7 10 6 s Ljdk/jfr/SettingDescriptor;
8 10 8 settingsPath Ljava/lang/String;
12 16 6 settingsText Ljava/lang/String;
MethodParameters:
Name Flags
recording
private static java.util.List<jdk.jfr.EventType> sortByEventPath(java.util.Collection<jdk.jfr.EventType>);
descriptor: (Ljava/util/Collection;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, 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
aload 0
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
2: aload 1
new jdk.jfr.internal.dcmd.DCmdCheck$1
dup
invokespecial jdk.jfr.internal.dcmd.DCmdCheck$1.<init>:()V
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 events Ljava/util/Collection<Ljdk/jfr/EventType;>;
1 4 1 sorted Ljava/util/List<Ljdk/jfr/EventType;>;
Signature: (Ljava/util/Collection<Ljdk/jfr/EventType;>;)Ljava/util/List<Ljdk/jfr/EventType;>;
MethodParameters:
Name Flags
events
}
SourceFile: "DCmdCheck.java"
NestMembers:
jdk.jfr.internal.dcmd.DCmdCheck$1
InnerClasses:
jdk.jfr.internal.dcmd.DCmdCheck$1