heatmap

package
v1.235.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 14 Imported by: 1 module, 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

Steps is the ordered list of all workflow execution steps.

Functions

func FormatDuration

func FormatDuration(d time.Duration) string

FormatDuration formats a duration for display, showing "0" instead of "0s" for zero durations.

func StartBubbleTeaUI

func StartBubbleTeaUI(ctx context.Context, heatModel *HeatModel, mode string) error

StartBubbleTeaUI starts the Bubble Tea interface.

Types

type HeatModel

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

HeatModel stores performance timing data for multiple execution runs in a matrix format.

func NewHeatModel

func NewHeatModel() *HeatModel

NewHeatModel creates and initializes a new HeatModel with empty timing matrix.

func (*HeatModel) AddRun

func (m *HeatModel) AddRun(sample RunSample)

AddRun adds timing data from a single execution run to the heatmap model.

func (*HeatModel) Normalized

func (m *HeatModel) Normalized() ([][]float64, float64, float64)

Normalized returns a normalized copy of the timing matrix with values scaled to [0,1] range, along with min and max values in milliseconds.

type RunSample

type RunSample struct {
	RunIndex int
	StepDur  map[Step]time.Duration
}

RunSample represents a single execution run with timing data for each step.

type Step

type Step string

Step represents a stage in the Atmos workflow execution lifecycle.

const (
	StepParseConfig Step = "parse_config"
	StepLoadStacks  Step = "load_stacks"
	StepResolveDeps Step = "resolve_deps"
	StepPlan        Step = "terraform_plan"
	StepApply       Step = "terraform_apply"
)

Jump to

Keyboard shortcuts

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