Versions in this module Expand all Collapse all v0 v0.1.7 Oct 30, 2026 Changes in this version + const MaxCompositeExpansions + const MaxCompositeResourceExpansions + const MaxDiagnostics + const MaxOffscreenPixels + const MaxPatternTiles + type Budget struct + ObjectID models.StID + Report *ReportBuilder + ResourceID models.StID + func (b *Budget) AddUsage(usage *Budget) + func (b *Budget) AllowComposite(resourceID models.StID) bool + func (b *Budget) AllowOffscreenPixels(width, height, dpi float64) bool + func (b *Budget) AllowPatternTiles(count int) bool + func (b *Budget) CanReuse(usage *Budget) bool + func (b *Budget) CompositeCount(resource models.StID) int + func (b *Budget) Diagnose(code, message string, resource models.StID) + func (b *Budget) HasUsage() bool + func (b *Budget) ReportLimit(flag Limit, reason string, attrs ...any) + func (b *Budget) Reset() + func (b *Budget) Usage() Stats + type Diagnostic struct + Code string + Count int + Message string + ObjectID models.StID + ResourceID models.StID + type Limit uint8 + const LimitPatternTiles + type Report struct + Diagnostics []Diagnostic + Dropped int + PageID models.StID + Stats Stats + type ReportBuilder struct + func (r *ReportBuilder) Snapshot() Report + type Stats struct + CompositeExpansions int + ObjectsVisited int + OffscreenPixels float64 + PatternTiles int