execstatssummary

package
v0.8.18-rc-2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package execstatssummary provides mechanisms to track and summarize execution statistics across build steps.

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() 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