statsutil

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsUtil

type StatsUtil interface {
	// GetSystemCPUUsage returns the host system's cpu usage in
	// nanoseconds. An error is returned if the format of the underlying
	// file does not match.
	GetSystemCPUUsage() (uint64, error)

	// GetNumberOnlineCPUs estimates number of available CPUs
	GetNumberOnlineCPUs() (uint32, error)

	// CollectNetworkStats collects network usage statistics for specified network
	// interfaces in a process namespace
	CollectNetworkStats(pid int, interfaces []native.NetInterface) (map[string]dockertypes.NetworkStats, error)
}

func NewStatsUtil

func NewStatsUtil() StatsUtil

Jump to

Keyboard shortcuts

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