From b57660dffbc5a49882d9ba8e5136158e640b3885 Mon Sep 17 00:00:00 2001 From: Dmitrii Ustiugov Date: Mon, 27 May 2019 20:12:08 +0100 Subject: 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. --- content/docs/user_guide/debugging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/docs/user_guide') diff --git a/content/docs/user_guide/debugging.md b/content/docs/user_guide/debugging.md index c6f5cc772..f7965d23b 100644 --- a/content/docs/user_guide/debugging.md +++ b/content/docs/user_guide/debugging.md @@ -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 -- cgit v1.2.3