heatmap

package
v1.201.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

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