From 2198bf377dd91400513d303c9a11f07eefaecfbd Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 8 Jul 2019 05:34:46 -0700 Subject: [PATCH] debug: copy ipfs binary as well --- bin/collect-profiles.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/collect-profiles.sh b/bin/collect-profiles.sh index e1f80cd32..ca336e51b 100644 --- a/bin/collect-profiles.sh +++ b/bin/collect-profiles.sh @@ -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'