Core

/bin/util/view-cpu-profile.bat (243 B)

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

rem Starts a pprof server using the (previously-recorded) CPU profile at ./tmp/cpu.pprof

cd %~dp0\..\..

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