Skip to content

Commit

Permalink
Merge pull request #6673 from ipfs/collect-profiles-on-mac
Browse files Browse the repository at this point in the history
fix: make collect-profiles.sh work on mac
  • Loading branch information
Stebalien authored Sep 24, 2019
2 parents ad9cbbd + 7524059 commit e921121
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bin/collect-profiles.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -x
set -euo pipefail
IFS=$'\n\t'

HTTP_API="${1:-localhost:5001}"
HTTP_API="${1:-127.0.0.1:5001}"
tmpdir=$(mktemp -d)
export PPROF_TMPDIR="$tmpdir"
pushd "$tmpdir"
Expand Down Expand Up @@ -36,9 +36,5 @@ echo "Disabling mutex profiling"
curl -X POST -v "http://$HTTP_API"'/debug/pprof-mutex/?fraction=0'

popd
tar cvzf "./ipfs-profile-$(uname -n)-$(date -Iseconds).tar.gz" -C "$tmpdir" .
tar cvzf "./ipfs-profile-$(uname -n)-$(date +'%Y-%m-%dT%H:%M:%S%z').tar.gz" -C "$tmpdir" .
rm -rf "$tmpdir"




0 comments on commit e921121

Please sign in to comment.