-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6038 from ipfs/feat/gomod-yey
Introduce go modules [yey]
- Loading branch information
Showing
222 changed files
with
1,771 additions
and
1,371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ gx-workspace-update.json | |
bin/gx | ||
bin/gx* | ||
bin/tmp | ||
bin/gocovmerge | ||
bin/cover | ||
|
||
|
||
vendor | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bash | ||
set -x | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
HTTP_API="${1:-localhost:5001}" | ||
tmpdir=$(mktemp -d) | ||
export PPROF_TMPDIR="$tmpdir" | ||
pushd "$tmpdir" | ||
|
||
echo Collecting goroutine stacks | ||
curl -o goroutines.stacks "http://$HTTP_API"'/debug/pprof/goroutine?debug=2' | ||
|
||
echo Collecting goroutine profile | ||
go tool pprof -symbolize=remote -svg -output goroutine.svg "http://$HTTP_API/debug/pprof/goroutine" | ||
|
||
echo Collecting heap profile | ||
go tool pprof -symbolize=remote -svg -output heap.svg "http://$HTTP_API/debug/pprof/heap" | ||
|
||
echo "Collecting cpu profile (~30s)" | ||
go tool pprof -symbolize=remote -svg -output cpu.svg "http://$HTTP_API/debug/pprof/profile" | ||
|
||
echo "Enabling mutex profiling" | ||
curl -X POST -v "http://$HTTP_API"'/debug/pprof-mutex/?fraction=4' | ||
|
||
echo "Waiting for mutex data to be updated (30s)" | ||
sleep 30 | ||
curl -o mutex.txt "http://$HTTP_API"'/debug/pprof/mutex?debug=2' | ||
go tool pprof -symbolize=remote -svg -output mutex.svg "http://$HTTP_API/debug/pprof/mutex" | ||
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" . | ||
rm -rf "$tmpdir" | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.