pdmlabs.energy.noop_backend#

Zero-overhead backend used whenever energy tracking is disabled.

This is the default. It records wall-clock only, so instrumenting the experiment layer costs nothing measurable when the feature is off, and the whole plumbing layer (sink, context, decorator, phase envelopes) can be tested end to end without any measurement hardware or CodeCarbon installed.

Classes

NoopEnergyBackend(**_kwargs)

class pdmlabs.energy.noop_backend.NoopEnergyBackend(**_kwargs)#

Bases: BaseEnergyBackend

name: str = 'noop'#
probe()#

Report what this backend can actually measure, without measuring.

Returns a dict with at least power_source_cpu, power_source_gpu, ram_source and available (bool). Called by the preflight gate.

start_phase(label)#
start_task(label)#
stop_phase()#
stop_task(token=None)#