mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
debug: copy ipfs binary as well
This commit is contained in:
parent
70e499afbc
commit
2198bf377d
@ -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'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user