File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,17 @@ go tool pprof -symbolize=remote -svg -output mutex.svg "$SOURCE_URL/debug/pprof/
46
46
echo " Disabling mutex profiling"
47
47
curl -X POST " $SOURCE_URL " ' /debug/pprof-mutex/?fraction=0'
48
48
49
+ echo " Enabling block profiling"
50
+ curl -X POST " $SOURCE_URL " ' /debug/pprof-block/?rate=1000000' # profile every 1 ms
51
+
52
+ echo " Waiting for block data to be updated (30s)"
53
+ sleep 30
54
+ curl -s -o block.txt " $SOURCE_URL " ' /debug/pprof/block?debug=2'
55
+ go tool pprof -symbolize=remote -svg -output block.svg " $SOURCE_URL /debug/pprof/block"
56
+
57
+ echo " Disabling block profiling"
58
+ curl -X POST " $SOURCE_URL " ' /debug/pprof-block/?rate=0'
59
+
49
60
OUTPUT_NAME=ipfs-profile-$( uname -n) -$( date +' %Y-%m-%dT%H:%M:%S%z' ) .tar.gz
50
61
echo " Creating $OUTPUT_NAME "
51
62
popd > /dev/null
You can’t perform that action at this time.
0 commit comments