diff --git a/bin/collect-profiles.sh b/bin/collect-profiles.sh old mode 100644 new mode 100755 index ca336e51b..24540e3f2 --- a/bin/collect-profiles.sh +++ b/bin/collect-profiles.sh @@ -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" @@ -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" - - - -