Changed example command for profiling CPU/heap

Profiling a container that runs `sleep 1000` command dumps an empty CPU profile that may cause unnecessary questions. I suggest replacing this example with one mentioned in the same doc above.
This commit is contained in:
Dmitrii Ustiugov
2019-05-29 16:58:09 +09:00
committed by Ian Lewis
parent ff72925c55
commit b57660dffb
+1 -1
View File
@@ -89,7 +89,7 @@ the options available:
For example:
```bash
docker run --runtime=runsc-prof --rm -d alpine sleep 1000
docker run --runtime=runsc-prof --rm -d alpine sh -c "while true; do echo running; sleep .1; done"
63254c6ab3a6989623fa1fb53616951eed31ac605a2637bb9ddba5d8d404b35b
sudo runsc --root /var/run/docker/runtime-runsc-prof/moby debug --profile-heap=/tmp/heap.prof 63254c6ab3a6989623fa1fb53616951eed31ac605a2637bb9ddba5d8d404b35b