Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Name is the name of the application.
Name string `json:",optional,inherit"`
// ServerAddr is the address of the profiling server.
ServerAddr string
// AuthUser is the username for basic authentication.
AuthUser string `json:",optional"`
// AuthPassword is the password for basic authentication.
AuthPassword string `json:",optional"`
// UploadRate is the duration for which profiling data is uploaded.
UploadRate time.Duration
// CheckInterval is the interval to check if profiling should start.
CheckInterval time.Duration
// ProfilingDuration is the duration for which profiling data is collected.
ProfilingDuration time.Duration
// CpuThreshold the collection is allowed only when the current service cpu > CpuThreshold
CpuThreshold int64
// ProfileType is the type of profiling to be performed.
ProfileType ProfileType
}
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns Hexas continuous profiling defaults.
type ProfileType ¶
type ProfileType struct {
// Logger is a flag to enable or disable logging.
Logger bool
// CPU is a flag to disable CPU profiling.
CPU bool
// Goroutines is a flag to disable goroutine profiling.
Goroutines bool
// Memory is a flag to disable memory profiling.
Memory bool
// Mutex is a flag to disable mutex profiling.
Mutex bool
// Block is a flag to disable block profiling.
Block bool
}
Click to show internal directories.
Click to hide internal directories.