diff --git a/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java b/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java index b9ecce871..86579980c 100644 --- a/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java +++ b/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java @@ -159,7 +159,7 @@ public class ProfilerCommand extends AnnotatedCommand { // load from arthas directory profiler = AsyncProfiler.getInstance(libPath); } else { - if (OSUtils.isLinux() || OSUtils.isLinux()) { + if (OSUtils.isLinux() || OSUtils.isMac()) { throw new IllegalStateException("Can not find libasyncProfiler so, please check the arthas directory."); } else { throw new IllegalStateException("Current OS do not support AsyncProfiler.");