Skip to content

Commit

Permalink
debug: copy ipfs binary as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 8, 2019
1 parent 70e499a commit 2198bf3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/collect-profiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ tmpdir=$(mktemp -d)
export PPROF_TMPDIR="$tmpdir"
pushd "$tmpdir"

IPFS_BIN=$(which ipfs)
if [[ -e "$IPFS_BIN" ]]; then
cp "$IPFS_BIN" ipfs
fi

echo Collecting goroutine stacks
curl -o goroutines.stacks "http://$HTTP_API"'/debug/pprof/goroutine?debug=2'

Expand Down

0 comments on commit 2198bf3

Please sign in to comment.