update docs about stop/shutdown. #838

This commit is contained in:
hengyunabc
2019-10-31 11:00:56 +08:00
parent d63f970dd3
commit 665e944fbe
12 changed files with 21 additions and 15 deletions
@@ -10,6 +10,8 @@ import com.taobao.middleware.cli.annotations.Name;
import com.taobao.middleware.cli.annotations.Option;
import com.taobao.middleware.cli.annotations.Summary;
import one.profiler.AsyncProfiler;
/**
* @see com.taobao.arthas.core.shell.command.internal.GrepHandler
*/
@@ -169,6 +171,10 @@ public class GrepCommand extends AnnotatedCommand {
@Override
public void process(CommandProcess process) {
process.write("The grep command only for pipes. See 'grep --help'").write("\n");
String libPath = "/private/tmp/async-profiler-1.6-macos-x64/build/libasyncProfiler.so";
AsyncProfiler instance = AsyncProfiler.getInstance(libPath);
process.write(instance.toString());
process.end();
}
}