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 GetDetails ¶
func GetDetails() (*models.SystemDetails, []error)
GetDetails collects information about the system and returns it as a SystemDetails 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 details 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.