criticalpath

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path struct {
	Segments []Segment
	Total    time.Duration
}

Path is the longest dependency-aware chain of blocking work.

func Compute

func Compute(run *model.Run) *Path

Compute returns the critical path for a run using depends_on edges and phase timings. For each service, its "cost" is total phase time; the path is the heaviest root→leaf chain.

type Segment

type Segment struct {
	Service  string
	Phase    model.ServicePhase
	Duration time.Duration
}

Segment is one contribution on the critical path.

Jump to

Keyboard shortcuts

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