mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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:
committed by
Ian Lewis
parent
ff72925c55
commit
b57660dffb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user