benchutil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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