diff --git a/async-profiler/libasyncProfiler-linux-arm.so b/async-profiler/libasyncProfiler-linux-arm.so index 8530e6705..6606c411a 100755 Binary files a/async-profiler/libasyncProfiler-linux-arm.so and b/async-profiler/libasyncProfiler-linux-arm.so differ diff --git a/async-profiler/libasyncProfiler-linux-x64.so b/async-profiler/libasyncProfiler-linux-x64.so index fe944c8c7..ff5912bce 100755 Binary files a/async-profiler/libasyncProfiler-linux-x64.so and b/async-profiler/libasyncProfiler-linux-x64.so differ diff --git a/async-profiler/libasyncProfiler-mac-x64.so b/async-profiler/libasyncProfiler-mac-x64.so index 792a6618f..b5f85cb39 100755 Binary files a/async-profiler/libasyncProfiler-mac-x64.so and b/async-profiler/libasyncProfiler-mac-x64.so differ 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 de4ee4bcb..f3b66aa31 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 @@ -231,7 +231,7 @@ public class ProfilerCommand extends AnnotatedCommand { } /** - * https://github.com/jvm-profiling-tools/async-profiler/blob/v1.6/src/arguments.cpp#L34 + * https://github.com/jvm-profiling-tools/async-profiler/blob/v1.8.1/src/arguments.cpp#L50 * */ public enum ProfilerAction { diff --git a/site/src/site/sphinx/en/profiler.md b/site/src/site/sphinx/en/profiler.md index 77989fe42..cae7d3d1a 100644 --- a/site/src/site/sphinx/en/profiler.md +++ b/site/src/site/sphinx/en/profiler.md @@ -155,7 +155,7 @@ You can verify the number of samples by executing `profiler getSamples`. For example, start sampling: ```bash -profiler execute 'start' +profiler execute 'start,framebuf=5000000' ``` Stop sampling and save to the specified file: @@ -164,7 +164,7 @@ Stop sampling and save to the specified file: profiler execute 'stop,file=/tmp/result.svg' ``` -Specific format reference: [arguments.cpp#L34](https://github.com/jvm-profiling-tools/async-profiler/blob/v1.6/src/arguments.cpp#L34) +Specific format reference: [arguments.cpp](https://github.com/jvm-profiling-tools/async-profiler/blob/v1.8.1/src/arguments.cpp#L50) ### View all supported actions diff --git a/site/src/site/sphinx/profiler.md b/site/src/site/sphinx/profiler.md index 04d084d0e..799191a91 100644 --- a/site/src/site/sphinx/profiler.md +++ b/site/src/site/sphinx/profiler.md @@ -157,7 +157,7 @@ Started [cpu] profiling 比如开始采样: ```bash -profiler execute 'start' +profiler execute 'start,framebuf=5000000' ``` 停止采样,并保存到指定文件里: @@ -166,7 +166,7 @@ profiler execute 'start' profiler execute 'stop,file=/tmp/result.svg' ``` -具体的格式参考: [arguments.cpp#L34](https://github.com/jvm-profiling-tools/async-profiler/blob/v1.6/src/arguments.cpp#L34) +具体的格式参考: [arguments.cpp](https://github.com/jvm-profiling-tools/async-profiler/blob/v1.8.1/src/arguments.cpp#L50) ### 查看所有支持的action diff --git a/spy/src/main/java/one/profiler/AsyncProfiler.java b/spy/src/main/java/one/profiler/AsyncProfiler.java index c9eaa5dc3..c61fdbe33 100644 --- a/spy/src/main/java/one/profiler/AsyncProfiler.java +++ b/spy/src/main/java/one/profiler/AsyncProfiler.java @@ -166,7 +166,8 @@ public class AsyncProfiler implements AsyncProfilerMXBean { } /** - * Add the given thread to the set of profiled threads + * Add the given thread to the set of profiled threads. + * 'filter' option must be enabled to use this method. * * @param thread Thread to include in profiling */ @@ -175,7 +176,8 @@ public class AsyncProfiler implements AsyncProfilerMXBean { } /** - * Remove the given thread from the set of profiled threads + * Remove the given thread from the set of profiled threads. + * 'filter' option must be enabled to use this method. * * @param thread Thread to exclude from profiling */ @@ -201,4 +203,4 @@ public class AsyncProfiler implements AsyncProfilerMXBean { private native void stop0() throws IllegalStateException; private native String execute0(String command) throws IllegalArgumentException, IOException; private native void filterThread0(Thread thread, boolean enable); -} +} \ No newline at end of file diff --git a/tutorials/katacoda/command-profiler-cn/profiler.md b/tutorials/katacoda/command-profiler-cn/profiler.md index f7daa3864..94314175b 100644 --- a/tutorials/katacoda/command-profiler-cn/profiler.md +++ b/tutorials/katacoda/command-profiler-cn/profiler.md @@ -191,10 +191,10 @@ Started [cpu] profiling 比如开始采样: -`profiler execute 'start'`{{execute T2}} +`profiler execute 'start,framebuf=5000000'`{{execute T2}} ```bash -profiler execute 'start' +profiler execute 'start,framebuf=5000000' ``` 停止采样,并保存到指定文件里: @@ -205,4 +205,4 @@ profiler execute 'start' profiler execute 'stop,file=/tmp/result.svg' ``` -具体的格式参考: [arguments.cpp#L34](https://github.com/jvm-profiling-tools/async-profiler/blob/v1.6/src/arguments.cpp#L34) +具体的格式参考: [arguments.cpp](https://github.com/jvm-profiling-tools/async-profiler/blob/v1.8.1/src/arguments.cpp#L50) diff --git a/tutorials/katacoda/command-profiler-en/profiler.md b/tutorials/katacoda/command-profiler-en/profiler.md index 52e07ed7f..7145a7dde 100644 --- a/tutorials/katacoda/command-profiler-en/profiler.md +++ b/tutorials/katacoda/command-profiler-en/profiler.md @@ -189,12 +189,12 @@ You can verify the number of samples by executing `profiler getSamples`. ### Use `execute` action to execute complex commands -`profiler execute 'start'`{{execute T2}} +`profiler execute 'start,framebuf=5000000'`{{execute T2}} For example, start sampling: ```bash -profiler execute 'start' +profiler execute 'start,framebuf=5000000' ``` Stop sampling and save to the specified file: @@ -205,4 +205,4 @@ Stop sampling and save to the specified file: profiler execute 'stop,file=/tmp/result.svg' ``` -Specific format reference: [arguments.cpp#L34](https://github.com/jvm-profiling-tools/async-profiler/blob/v1.6/src/arguments.cpp#L34) +Specific format reference: [arguments.cpp](https://github.com/jvm-profiling-tools/async-profiler/blob/v1.8.1/src/arguments.cpp#L50)