mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
fix profiler command --format jfr support(#1406)
This commit is contained in:
@@ -290,6 +290,10 @@ public class ProfilerCommand extends AnnotatedCommand {
|
||||
String result = execute(asyncProfiler, this.actionArg);
|
||||
appendExecuteResult(process, result);
|
||||
} else if (ProfilerAction.start.equals(profilerAction)) {
|
||||
//jfr录制,必须在start的时候就指定文件路径
|
||||
if (this.file == null && "jfr".equals(format)) {
|
||||
this.file = outputFile();
|
||||
}
|
||||
String executeArgs = executeArgs(ProfilerAction.start);
|
||||
String result = execute(asyncProfiler, executeArgs);
|
||||
ProfilerModel profilerModel = createProfilerModel(result);
|
||||
|
||||
Reference in New Issue
Block a user