upgrade async-profiler to 1.8.1. #1478

This commit is contained in:
hengyunabc
2020-09-07 17:05:34 +08:00
parent 41f86ac5ca
commit fa4561533f
9 changed files with 16 additions and 14 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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 {
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
@@ -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);
}
}
@@ -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)
@@ -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)