From 17ad6a4fd809acddd287d91beafb09e8e1d0bbb8 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Mon, 22 Feb 2016 01:52:54 +0000 Subject: [PATCH] Document how to obtain profiles without `go tool pprof` --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 70b471144..84aa1ce55 100644 --- a/README.md +++ b/README.md @@ -290,3 +290,18 @@ go tool pprof http://localhost:4040/debug/pprof/heap ``` go tool pprof http://localhost:4041/debug/pprof/profile ``` + + If you don't have `go` installed, you can use a docker container instead: + + * To collect the Memory profile of the Scope App: + + ``` +docker run --net=host -v $PWD:/root/pprof golang go tool pprof http://localhost:4040/debug/pprof/heap +``` + * To collect the CPU profile of the Scope Probe: + + ``` +docker run --net=host -v $PWD:/root/pprof golang go tool pprof http://localhost:4041/debug/pprof/profile +``` + + You will find the output profiles in your working directory.