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

This page has moved to:

Follow link above if you are not automatically redirected in 5 seconds.

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

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

go tool pprof <service-catalog-executable-path> http://<host>:<profile-port>/debug/pprof/<profile_type>

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

The list of profile types are available here:

For example, to get the CPU profile for 60 seconds:

go tool pprof --http localhost:8888 --seconds 60 ./service-catalog-linux-amd64

For more information regarding pprof, visit:

  • No labels