Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectMetrics ¶
func CollectMetrics(interval time.Duration, stopChan <-chan struct{}, sampleChan chan<- models.SystemSample) error
CollectMetrics monitors the system and sends samples to the sample channel.
func GetConfig ¶ added in v0.12.0
func GetConfig() (*models.SystemConfig, []error)
GetConfig collects information about the system and returns it as a SystemConfig struct. If an error occurs, the method will not stop but continue to collect information. The errors will be returned as a slice. We do this since the system config are not essential for dbench to run and should not prevent the user from running a benchmark.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.