Skip to content

Commit feb32d3

Browse files
committed
docs(transalaate): /documentation/server/guides/allocations.md
1 parent 3525c58 commit feb32d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

documentation/server/guides/allocations.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ Check IO/CPU overload!
424424

425425
- 减少程序执行的工作量。
426426
- 对于每次内存分配,`perf` 都会记录一个堆栈跟踪。
427-
- 通过更改 `--call-graph dwarf` 参数来减少 `perf` 记录的最大堆栈*转储*。例如,更改为:`--call-graph dwarf,2048`
427+
- 通过更改 `--call-graph dwarf` 参数来减少 `perf` 记录的最大堆栈*转储*
428+
例如,更改为:`--call-graph dwarf,2048`
428429
- 默认值最多记录 4096 字节,呈现深堆栈。如果您不需要高容量输出,则可以减少此数字。但是,火焰图可能会显示 `[unknown]` 堆栈帧,这意味着存在缺失的堆栈帧(以字节为单位)。
429430
- 增加 `-m` 参数的数量,这是 `perf` 在内存中使用的环形缓冲区的大小,并以 `PAGE_SIZE`(通常为 4kB)的倍数渲染。
430431
-`--call-tree fp` 替换命令 `--call-tree dwarf`,以生成一个调用树报告,提供程序内函数调用的层次视图,展示如何调用函数以及不同函数间的关系。

0 commit comments

Comments
 (0)