update profile include/exclude doc (#2560)

pull/2561/head
汪吉 2 years ago committed by GitHub
parent 2ae93d669e
commit dbb67b5587
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,7 +54,7 @@ import one.profiler.Counter;
+ " profiler stop --format html # output file format, support html,jfr\n"
+ " profiler stop --file /tmp/result.html\n"
+ " profiler stop --threads \n"
+ " profiler start --include 'java/*' --include 'demo/*' --exclude '*Unsafe.park*'\n"
+ " profiler start --include 'java/*' --include 'com/demo/*' --exclude '*Unsafe.park*'\n"
+ " profiler status\n"
+ " profiler resume # Start or resume profiling without resetting collected data.\n"
+ " profiler getSamples # Get the number of samples collected during the profiling session\n"

@ -177,13 +177,13 @@ profiler start --framebuf 5000000
## 配置 include/exclude 来过滤数据
如果应用比较复杂,生成的内容很多,想只关注部分数据,可以通过 include/exclude 来过滤。比如
如果应用比较复杂,生成的内容很多,想只关注部分 stack traces可以通过 `--include/--exclude` 过滤 stack traces`--include` 表示定义的匹配表达式必须出现在 stack traces相反 `--exclude` 表示定义的匹配表达式一定不会出现在 stack traces。 匹配表达式可以以`*`开始或者结束,`*` 表示任何(可能为空)字符序列。 比如
```bash
profiler start --include 'java/*' --include 'demo/*' --exclude '*Unsafe.park*'
profiler start --include 'java/*' --include 'com/demo/*' --exclude '*Unsafe.park*'
```
> include/exclude 都支持设置多个值 ,但是需要配置在命令行的最后。
> `--include/--exclude` 都支持设置多个值 ,但是需要配置在命令行的最后。
## 指定执行时间

@ -179,13 +179,13 @@ profiler start --framebuf 5000000
## Configure include/exclude to filter data
If the application is complex and generates a lot of content, and you want to focus on only part of the data, you can filter by include/exclude. such as
If the application is complex and generates a lot of content, and you want to focus on only part of stack traces, you can filter stack traces by `--include/--exclude`. `--include` defines the name pattern that must be present in the stack traces, while `--exclude` is the pattern that must not occur in any of stack traces in the output.A pattern may begin or end with a star `*` that denotes any (possibly empty) sequence of characters. such as
```bash
profiler start --include'java/*' --include'demo/*' --exclude'*Unsafe.park*'
profiler start --include'java/*' --include 'com/demo/*' --exclude'*Unsafe.park*'
```
> Both include/exclude support setting multiple values, but need to be configured at the end of the command line.
> Both `--include/--exclude` support setting multiple values, but need to be configured at the end of the command line.
## Specify execution time

Loading…
Cancel
Save