Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(ctx context.Context, log logrus.FieldLogger, cfg *config.Config, applicationName string, defaultPprofPort int)
Start starts the profiling backends enabled in cfg.
- profiling.pprof.enabled → loopback net/http/pprof
- profiling.pyroscope.enabled → push profiles to a Pyroscope server
applicationName is used for Pyroscope when profiling.pyroscope.applicationName is unset (e.g. "flightctl-worker"). defaultPprofPort is used when profiling.pprof.port is unset.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.