From 7894442ee7d1f55538f315852a5f45c542948d4c Mon Sep 17 00:00:00 2001 From: Jonathan Lange Date: Thu, 14 Jul 2016 15:17:56 +0100 Subject: [PATCH] Update site/building.md with profiling docs --- site/building.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site/building.md b/site/building.md index 5f24fdf0d..dcfc21891 100644 --- a/site/building.md +++ b/site/building.md @@ -72,6 +72,12 @@ To collect the CPU profile of the Scope Probe: go tool pprof http://localhost:4041/debug/pprof/profile +To collect a blocking profile of the Scope App, make sure you have launched +Scope with `--app.block.profile.rate=N` (where `N` is the number of +nanoseconds between samples) and then: + + go tool pprof http://localhost:4040/debug/pprof/ + If you don't have `go` installed, you can use a Docker container instead: To collect the memory profile of the Scope App: