ProfilingConfig
PythonPMU capture settings.
ProfilingConfig()PMU capture settings.
Counter selection is specified via pmu_counters — a mapping of
compute-unit group (cpu, mve, memory, ethos_npu) to a
selection:
"default"— curated set of the most useful counters."all"— every counter in the group (multi-pass).["NAME", …]— explicit counter names.
The ethos_npu group samples the Ethos-U NPU’s own PMU (NPU cycles,
MAC activity, SRAM/external bus beats) and requires an NPU-equipped board
plus engine.backend: ethos_u (engine.type helia-rt or helia-aot).
API tier: stable
pmu_counters
Pythonpmu_counters: dict[str, str | list[str]] = field(default_factory=lambda : ...)per_layer
Pythonper_layer: bool = Trueiterations
Pythoniterations: int = DEFAULT_ITERATIONSwarmup
Pythonwarmup: int = DEFAULT_WARMUPwindow_mode
Pythonwindow_mode: WindowMode = DEFAULT_WINDOW_MODEwindow_target_ms
Pythonwindow_target_ms: int = DEFAULT_WINDOW_TARGET_MSwindow_min
Pythonwindow_min: int = DEFAULT_WINDOW_MINwindow_max
Pythonwindow_max: int = DEFAULT_WINDOW_MAXclean_window_probe
Pythonclean_window_probe: CleanWindowProbe = DEFAULT_CLEAN_WINDOW_PROBEclean_window_trace
Pythonclean_window_trace: bool = Falseforce_shared_sram
Pythonforce_shared_sram: bool = Falseaggregation
Pythonaggregation: Aggregation = DEFAULT_AGGREGATIONinput_fill
Pythoninput_fill: InputFill = InputFill.ZEROtransfer_timeout_probe
Pythontransfer_timeout_probe: bool = Falsestream_evidence
Pythonstream_evidence: bool = Falsesweep_evidence
Pythonsweep_evidence: bool = field(default=False, metadata={'omit_default': True})transfer_diagnostics
Pythontransfer_diagnostics: Literal['off', 'timing', 'overlap', 'trace'] = field(default='off', metadata={'omit_default': True})transfer_diagnostic_iterations: int = field(default=1, metadata={'omit_default': True})transfer_trace_max_pieces: int = field(default=256, metadata={'omit_default': True})extreme_mode
Pythonextreme_mode: bool = Falsedcache
Pythondcache: Literal['on', 'off'] = field(default='on', metadata={'omit_default': True})