Skip to content

Commit

Permalink
doc(profile): improve profiling docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 22, 2021
1 parent 0bea7ce commit 3745047
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/commands/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ Collects cpu, heap, and goroutine profiles from a running go-ipfs daemon
into a single zipfile. To aid in debugging, this command also attempts to
include a copy of the running go-ipfs binary.
Profile's can be examined using 'go tool pprof', some tips can be found at
https://github.com/ipfs/go-ipfs/blob/master/docs/debug-guide.md.
Privacy Notice:
The output file includes:
Expand Down
3 changes: 3 additions & 0 deletions docs/debug-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ that goroutine in the middle of a short wait for something. If the wait time is
over a few minutes, that either means that goroutine doesn't do much, or
something is pretty wrong.

If you're seeing a lot of goroutines, conside rusing
[stackparse](https://github.com/whyrusleeping/stackparse) to filter, sort, and summarize them.

### Analyzing the CPU Profile

The go team wrote an [excellent article on profiling go
Expand Down

0 comments on commit 3745047

Please sign in to comment.