benchutil

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerMemoryCollector

type DockerMemoryCollector struct {
	// contains filtered or unexported fields
}

DockerMemoryCollector collects memory usage stats of a Docker container.

func StartDockerMemoryCollector

func StartDockerMemoryCollector(containerName string) (*DockerMemoryCollector, error)

StartDockerMemoryCollector initializes and starts the memory collector.

func (*DockerMemoryCollector) GetMaxMemoryUsage

func (c *DockerMemoryCollector) GetMaxMemoryUsage() (uint64, error)

GetMaxMemoryUsage returns the maximum memory usage observed during the collection period.

func (*DockerMemoryCollector) Stop

func (c *DockerMemoryCollector) Stop() error

Stop stops the memory collector and waits for it to finish.

func (*DockerMemoryCollector) WaitForFirstSample

func (c *DockerMemoryCollector) WaitForFirstSample() error

WaitForFirstSample waits until the first stats sample has been received.

Jump to

Keyboard shortcuts

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