Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentConfig ¶
ComponentConfig defines a component to profile
type Config ¶
type Config struct {
// Collection interval
Interval time.Duration
// CPU profiling duration
CPUDuration time.Duration
// Profile mode: both, heap, cpu
Mode string
// Output directory
OutputDir string
// Test target (make target)
TestTarget string
// Profile name
Name string
// Components to profile
Components []ComponentConfig
}
Config holds all configuration for profiling
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns configuration with defaults from environment
func (*Config) CollectCPU ¶
CollectCPU returns whether to collect CPU profiles
func (*Config) CollectHeap ¶
CollectHeap returns whether to collect heap profiles
func (*Config) ComponentDir ¶
ComponentDir returns the directory for a specific component
func (*Config) ProfileDir ¶
ProfileDir returns the full path to the profile directory
Click to show internal directories.
Click to hide internal directories.