Versions in this module Expand all Collapse all v0 v0.3.4 Nov 5, 2026 v0.3.3 Nov 4, 2026 v0.3.2 Nov 3, 2026 v0.3.1 Nov 1, 2026 v0.3.0 Nov 1, 2026 Changes in this version + const SpanDay + const SpanHour + const SpanMonth + const SpanSec + const SpanWeek + const SpanYear + func BucketStart(t time.Time, span int, loc *time.Location) time.Time + func GPU(devRoot string) string + func NetDev(procRoot string) (rx, tx uint64, err error) + type Options struct + Loc *time.Location + Now func() time.Time + Sample func() (Sample, bool) + type Resources struct + func NewResources(opts Options) *Resources + func (r *Resources) Add(s Sample) + func (r *Resources) Query(span int, atMin, atMax int64, exact int64, hasExact, hasMin, hasMax bool) []Sample + func (r *Resources) Run(ctx context.Context) + type Sample struct + At time.Time + HostCPU float64 + HostMem float64 + ProcessCPU float64 + ProcessMem float64 + type Telemetry struct + At time.Time + Children int + Error string + FDs int + FFmpeg int + GOGC int + GPU string + Goroutines int + HeapAlloc uint64 + HeapIdle uint64 + HeapInuse uint64 + HeapReleased uint64 + HeapSys uint64 + NetRx uint64 + NetTx uint64 + RSSBytes uint64 + RetryQueue int + SQLiteFDs int + SelfRSS uint64 + Sessions int + Transcodes int + Valid bool + func Collect(procRoot, devRoot string, pid, sessions, transcodes int) Telemetry + type Tree struct + Children int + FDs int + FFmpegPIDs []int + GuardianPIDs []int + RSSBytes uint64 + SQLiteFDs int + SelfRSS uint64 + func ProcessTree(procRoot string, pid int) (Tree, error)