execstatssummary

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MPL-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 Tracker

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

Tracker is used for tracking exec stats summary for each RUN command

func NewTracker

func NewTracker(path string) *Tracker

NewTracker creates a new exec stats summary tracker

func (*Tracker) Close

func (t *Tracker) Close(ctx context.Context) error

Close closes the tracker, and writes the summary to disk (or stdout)

func (*Tracker) Observe

func (t *Tracker) Observe(target, command string, memory uint64, cpu time.Duration)

Observe records an exec stats payload for a particular (target, command) pair

func (*Tracker) String

func (t *Tracker) String() string

String returns a summarized table

Jump to

Keyboard shortcuts

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