Page tree
Skip to end of metadata
Go to start of metadata

The program profiling can be enabled by setting --profile argument. Once enabled, an HTTP runtime profiling server will bind to port 6060.

The profile can be analysed with go pprof tool. E.g:

go tool pprof ./service-catalog-linux-amd64 http://localhost:6060/debug/pprof/<profile_type>

Add --http localhost:<port> to get an interactive web UI at the given port.

The list of profile types are available here: https://golang.org/pkg/runtime/pprof/#Profile

For more information regarding pprof, visit: https://blog.golang.org/profiling-go-programs


  • No labels