Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

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

Code Block
go tool pprof ./service<service-catalog-linuxexecutable-amd64path> http://localhost<host>:6060<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:

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

For more information regarding pprof, visit: