Core

/bin/util/view-mem-profile.sh (309 B)

 1
2
3
4
5
6
7
8
9
10
#!/bin/bash

## Starts a pprof server using the (previously-recorded) heap dump at ./tmp/mem.pprof

set -euo pipefail
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $dir/../..

echo "=== launching profiler for mem.pprof ==="
go tool pprof -http=":8000" ./build/debug/{{{ .Exec }}} ./tmp/mem.pprof