summaryrefslogtreecommitdiffhomepage
path: root/content/docs/user_guide
diff options
context:
space:
mode:
authormoricho <ikeda.morito@gmail.com>2020-02-25 16:03:22 +0900
committerIan Lewis <ianlewis@google.com>2020-02-26 09:41:12 +0900
commit6eb4ea30088a19428d6dfde965985e844b7a9a2a (patch)
treee09a1d2349c1a894514f0b0320325351787b8742 /content/docs/user_guide
parentf4a0d6af97f749cd2b15c56975e913e89e85af56 (diff)
user_guide: modify debug option
Diffstat (limited to 'content/docs/user_guide')
-rw-r--r--content/docs/user_guide/debugging.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/content/docs/user_guide/debugging.md b/content/docs/user_guide/debugging.md
index 49f9638d7..6ea21fc36 100644
--- a/content/docs/user_guide/debugging.md
+++ b/content/docs/user_guide/debugging.md
@@ -107,7 +107,7 @@ execute `runsc debug` to collect profile information and save to a file. Here ar
the options available:
* **--profile-heap:** Generates heap profile to the speficied file.
-* **--profile-cpu:** Enables CPU profiler, waits for `--profile-delay` seconds
+* **--profile-cpu:** Enables CPU profiler, waits for `--duration` seconds
and generates CPU profile to the speficied file.
For example:
@@ -117,11 +117,11 @@ docker run --runtime=runsc-prof --rm -d alpine sh -c "while true; do echo runnin
63254c6ab3a6989623fa1fb53616951eed31ac605a2637bb9ddba5d8d404b35b
sudo runsc --root /var/run/docker/runtime-runsc-prof/moby debug --profile-heap=/tmp/heap.prof 63254c6ab3a6989623fa1fb53616951eed31ac605a2637bb9ddba5d8d404b35b
-sudo runsc --root /var/run/docker/runtime-runsc-prof/moby debug --profile-cpu=/tmp/cpu.prof --profile-delay=30 63254c6ab3a6989623fa1fb53616951eed31ac605a2637bb9ddba5d8d404b35b
+sudo runsc --root /var/run/docker/runtime-runsc-prof/moby debug --profile-cpu=/tmp/cpu.prof --duration=30s 63254c6ab3a6989623fa1fb53616951eed31ac605a2637bb9ddba5d8d404b35b
```
-The resulting files can be opened using `go tool pprof` or [pprof][]. The examples
-below create image file (`.svg`) with the heap profile and writes the top
+The resulting files can be opened using `go tool pprof` or [pprof][]. The examples
+below create image file (`.svg`) with the heap profile and writes the top
functions using CPU to the console:
```bash