Skip to content

Commit

Permalink
Merge pull request #993 from weaveworks/983-without-pprof
Browse files Browse the repository at this point in the history
Document how to obtain profiles without `go tool pprof`
  • Loading branch information
Alfonso Acosta committed Feb 25, 2016
2 parents fbe5671 + 17ad6a4 commit e09d818
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,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.

0 comments on commit e09d818

Please sign in to comment.