Skip to main content

Module power

Module power 

Source

Structs§

EnergyResult
MockPowerSource
Fixed-wattage mock for deterministic tests.
PowerSample
PowerTracker

Traits§

PowerSource
Trait for reading instantaneous power (NVML, RAPL, etc.).

Functions§

estimate_energy
Trapezoidal integration of power samples (must be sorted by timestamp).