system

package
v0.10.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 9 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 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.

Jump to

Keyboard shortcuts

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