Documentation ¶
Index ¶
Constants ¶
View Source
const (
MIN_SAVE_PERIOD = 20 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func StartPeriodicPerfProfilesCollection ¶
func StartPeriodicPerfProfilesCollection(ctx *core.Context, conf PerfDataCollectionConfig) (stopChan chan struct{}, _ error)
StartPeriodicPerfProfilesCollection starts a goroutine that collect several profiles: CPU, MEM, Mutex, goroutine stack trace. Every conf.Period the profiles are saved, stopChan should be written to & stopped by the caller.
Types ¶
type PerfDataCollectionConfig ¶
type PerfDataCollectionConfig struct { // this duration is truncated to the second ProfileSavePeriod time.Duration Bucket s3_ns.OpenBucketWithCredentialsInput }
Click to show internal directories.
Click to hide internal directories.