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


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!