system

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL