...
Package profiler
Overview ▹
Index ▹
func Start ¶
func Start(cfg *Config) error
Start starts a goroutine to collect and upload profiles. See package level documentation for details.
▹ Example
type Config ¶
Config is the profiler configuration.
type Config struct { // Target groups related deployments together, defaults to "unknown". Target string // DebugLogging enables detailed debug logging from profiler. DebugLogging bool // ProjectID is the ID of the cloud project to use instead of // the one read from the VM metadata server. Typically for testing. ProjectID string // InstanceName is the name of the VM instance to use instead of // the one read from the VM metadata server. Typically for testing. InstanceName string // ZoneName is the name of the zone to use instead of // the one read from the VM metadata server. Typically for testing. ZoneName string // APIAddr is the HTTP endpoint to use to connect to the profiler // agent API. Defaults to the production environment, overridable // for testing. APIAddr string }