Skip to content

Commit 59292ed

Browse files
hengyunabcactions-user
authored andcommitted
Prettified Code!
1 parent 1c1713c commit 59292ed

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

site/docs/doc/profiler.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ profiler --ttsp
338338
```bash
339339
profiler start -e cpu --jfrsync profile -f combined.jfr
340340
```
341+
341342
## 周期性保存结果
342343

343344
使用 `--loop TIME` 可以持续运行 profiler 并周期性保存结果。选项格式可以是具体时间 hh:mm:ss 或以秒、分钟、小时或天计算的时间间隔。需要确保指定的输出文件名中包含时间戳,否则每次输出的结果都会覆盖上次保存的结果。以下命令持续执行 profiling 并将每个小时内的记录保存到一个 jfr 文件中。

site/docs/en/doc/profiler.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ For example, command below use "profile" config of JFR:
338338
```bash
339339
profiler start -e cpu --jfrsync profile -f combined.jfr
340340
```
341+
341342
## Run profiler in a loop
342343

343344
Use `--loop TIME` to run profiler in a loop (continuous profiling). The argument is either a clock time (hh:mm:ss) or a loop duration in seconds, minutes, hours, or days. Make sure the filename includes a timestamp pattern, or the output will be overwritten on each iteration. The command below will run profiling endlessly and save records of each hour to a jfr file.

0 commit comments

Comments
 (0)