Core

/bin/util/view-mem-profile.bat (240 B)

1
2
3
4
5
6
7
8
9
@ECHO OFF

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

cd %~dp0\..\..

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