Skip to content

Commit 19f40da

Browse files
committed
polish doc
1 parent 4863455 commit 19f40da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/fluid/howto/optimization/timeline_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 如何使用timeline工具做性能分析
22

3-
1. 在训练的主循环外加上`profiler.start_profiler(...)``profiler.start_profiler(...)`。运行之后,代码会在`/tmp/profile`目录下生成一个profile的记录文件。
3+
1. 在训练的主循环外加上`profiler.start_profiler(...)``profiler.stop_profiler(...)`。运行之后,代码会在`/tmp/profile`目录下生成一个profile的记录文件。
44

55
**提示:**
66
请不要在timeline记录信息时运行太多次迭代,因为timeline中的记录数量和迭代次数是成正比的。

doc/fluid/howto/optimization/timeline_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# how to use timeline tool to do profile
22

3-
1. Add `profiler.start_profiler(...)``profiler.start_profiler(...)` to the main training loop. After run, the code will generate a profile record file `/tmp/profile`. **Warning**: Please do not run too many batches when use profiler to record timeline information, for the profile record will grow with the batch number.
3+
1. Add `profiler.start_profiler(...)``profiler.stop_profiler(...)` to the main training loop. After run, the code will generate a profile record file `/tmp/profile`. **Warning**: Please do not run too many batches when use profiler to record timeline information, for the profile record will grow with the batch number.
44

55
```python
66
for pass_id in range(pass_num):

0 commit comments

Comments
 (0)