Skip to content

Commit

Permalink
docs: improve debug docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Apr 29, 2021
1 parent cb62f99 commit 7787da7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/hub/debug.md
Expand Up @@ -19,14 +19,16 @@ You can use [the `pprof` tool](https://golang.org/pkg/net/http/pprof/) to visual

## Examples

Tip: type `web` when in interative mode to display a visual representation of the profile.

Look at the heap profile:

go tool pprof http://localhost:2019/debug/pprof/heap
```console
go tool pprof -http=:8080 http://localhost:2019/debug/pprof/heap
```

Look at the past memory allocations:

go tool pprof http://localhost:2019/debug/pprof/allocs
```console
go tool pprof -http=:8080 http://localhost:2019/debug/pprof/allocs
```

See `http://localhost:2019/debug/pprof/` for the list of available data.

0 comments on commit 7787da7

Please sign in to comment.