@cryptotaxi247 / kubo / commits / 2198bf377

debug: copy ipfs binary as well

Steven Allen committed Jul 8, 2019 at 05:34 UTC 2198bf377dd91400513d303c9a11f07eefaecfbd
1 file changed +5
bin/collect-profiles.sh
+5
@@ -8,6 +8,11 @@ tmpdir=$(mktemp -d)
8 export PPROF_TMPDIR="$tmpdir"
9 pushd "$tmpdir"
10
11 +IPFS_BIN=$(which ipfs)
12 +if [[ -e "$IPFS_BIN" ]]; then
13 + cp "$IPFS_BIN" ipfs
14 +fi
15 +
16 echo Collecting goroutine stacks
17 curl -o goroutines.stacks "http://$HTTP_API"'/debug/pprof/goroutine?debug=2'
18