Profiling
Prepare
Compile Cmd with the debug tag
go build -tags debug
Add this line to the config"
DebugAPI: true
Run the Profiler
To run the profiler on the CPU profile for 30 seconds:
go tool pprof -http=127.0.0.1:80 Cmd.exe http://[::1]:112/debug/pprof/profile
Howdy, Stranger!