From c74797a856160f55798b131bebe871b430e39627 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Thu, 8 Mar 2018 09:26:02 +0800 Subject: [PATCH] add warning --- doc/fluid/howto/optimization/timeline.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/fluid/howto/optimization/timeline.md b/doc/fluid/howto/optimization/timeline.md index f0c1f1002e3..57b48a47fec 100644 --- a/doc/fluid/howto/optimization/timeline.md +++ b/doc/fluid/howto/optimization/timeline.md @@ -1,6 +1,6 @@ ## how to use timeline tool to do profile -1. Add `with profiler.profiler(...)` to the main training loop. After run, the code will generate a profile record file `/tmp/profile`. +1. Add `with profiler.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 infomation, for the profile record will grow with the batch number. ```python with profiler.profiler('All', 'total', '/tmp/profile') as prof: -- GitLab