util

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DockerMeasuredCPUStats = []string{"Throttled Periods", "Throttled Time", "Percent"}
	DockerMeasuredMemStats = []string{"RSS", "Cache", "Swap", "Usage", "Max Usage"}
)

Functions

func CalculateCPUPercent

func CalculateCPUPercent(newSample, oldSample, newTotal, oldTotal uint64, cores int) float64

func DockerStatsToTaskResourceUsage

func DockerStatsToTaskResourceUsage(s *docker.Stats) *cstructs.TaskResourceUsage

Types

This section is empty.

Jump to

Keyboard shortcuts

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