Skip to content
heliaPROFILER
Reference
HELIA

results

What a profiling run produces: the run result, its per-layer and PMU detail, and the firmware and run metadata that say how it was measured.

Every name on this page is imported from helia_profiler.

API tier: stable, experimental

Generated from the src/helia_profiler tree e6916401b412b321b7dd82a4ccc2abc29b62fafa.

Machine-readable model

  • LayerResultclassProfiling result for a single model layer (averaged across iterations).
  • PresetResultclassResults for a single PMU counter preset (e.g.
  • FirmwareMetaclassMetadata reported by the profiler firmware at startup.
  • ConditionsclassThe board conditions a run's measurements refer to.
  • PmuResultclassComplete PMU profiling result across all presets.
  • ProfileResultclassComplete profiling result — the public return type of hpx.profile().
class

Profiling result for a single model layer (averaged across iterations).

src/helia_profiler/results/models.py:51

LayerResult(
id: int | str,
op: str,
counters: dict[str, float] = dict(),
cycles: float | None = None,
overflow: bool = False,
source_index: int | None = None,
) -> None

dataclass

Profiling result for a single model layer (averaged across iterations).

source_index is the ORIGINAL tflite operator index this measured layer corresponds to, when the op label carries one. id is the firmware’s execution position, which on AOT engines is NOT the original index — helia-aot skips ops without renumbering.

API tier: stable

class

Results for a single PMU counter preset (e.g.

src/helia_profiler/results/models.py:87

PresetResult(
name: str,
header: list[str] = list(),
iterations: list[list[LayerResult]] = list(),
layers: list[LayerResult] = list(),
) -> None

dataclass

Results for a single PMU counter preset (e.g. basic_cpu).

API tier: stable

class

Metadata reported by the profiler firmware at startup.

src/helia_profiler/results/models.py:118

FirmwareMeta(
model_size: int | None = None,
arena_size: int | None = None,
allocated_arena: int | None = None,
input_size: int | None = None,
output_size: int | None = None,
num_tensors: int | None = None,
num_inputs: int | None = None,
num_outputs: int | None = None,
num_presets: int | None = None,
system_clock_hz: int | None = None,
profiled_infer_count: int | None = None,
profiled_infer_total_us: int | None = None,
profiled_infer_avg_us: int | None = None,
clean_infer_count: int | None = None,
clean_infer_total_cycles: int | None = None,
clean_infer_avg_cycles: int | None = None,
clean_infer_avg_us: int | None = None,
clean_stalled_iters: int | None = None,
clean_partial_iters: int | None = None,
clean_ref_cycles: int | None = None,
clean_dwt_rate_cyc: int | None = None,
clean_dwt_rate_us: int | None = None,
clean_attach_wait_us: int | None = None,
psram: PsramInfo | None = None,
presets: tuple[str, ...] = (),
measured_clock_hz: int | None = None,
dcache: str | None = None,
per_layer_profiling: bool | None = None,
) -> None

dataclass

Metadata reported by the profiler firmware at startup.

All fields are optional because older firmware versions may not report every field.

API tier: stable

attribute

modelsize when it is a usable byte count, else None.

src/helia_profiler/results/models.py:190

reported_model_bytes: int | None

model_size when it is a usable byte count, else None.

The wire parser keeps an unparseable HPX_MODEL_SIZE as the raw string it received, so a corrupted or foreign line reaches consumers as text. Anything that needs a number asks here instead of assuming; the raw value stays on model_size so diagnostics can still quote what the device actually said.

class

The board conditions a run's measurements refer to.

src/helia_profiler/results/models.py:205

Conditions(
target: str,
cpu_hz: int | None = None,
weights_memory: str | None = None,
weights_cache: str = 'on',
external_memory_clock: int | None = None,
application_load: str = 'none',
cache_regime: str | None = None,
) -> None

dataclass

The board conditions a run’s measurements refer to.

Derived once, when the report is written, from the frozen configuration and the capture; readers take the recorded facts rather than deriving them again. The field names match heliaOptimus’s Conditions so a calibration table written from a run prices a plan made under the same conditions.

API tier: experimental

method

from_dict

Python

Read a recorded conditions block.

src/helia_profiler/results/models.py:254

from_dict(data: Mapping[str, Any]) -> Conditions

classmethod

Read a recorded conditions block.

Errors raised by from_dict
TypeDescription
ValueErrorwhen a field is missing or has the wrong type.
class

PmuResult

Python

Complete PMU profiling result across all presets.

src/helia_profiler/results/models.py:291

PmuResult(
meta: FirmwareMeta,
presets: dict[str, PresetResult] = dict(),
layers: list[LayerResult] = list(),
overflow_detected: bool = False,
groups: dict[str, list[LayerResult]] = dict(),
raw_output: tuple[str, ...] = (),
transfer_evidence: tuple[TransferEvidence, ...] = (),
transfer_diagnostics: tuple[TransferDiagnostic, ...] = (),
) -> None

dataclass

Complete PMU profiling result across all presets.

API tier: stable

class

Complete profiling result — the public return type of hpx.profile().

src/helia_profiler/results/models.py:732

ProfileResult(
pmu: PmuResult,
power: PowerResult | None = None,
power_observation: PowerObservation | None = None,
power_terminal: PowerTerminalRecord | None = None,
on_device_power: OnDevicePowerSummary | None = None,
metadata: RunMetadata = RunMetadata(),
report_paths: list[Path] = list(),
evaluation: RunEvaluation | None = None,
) -> None

dataclass

Complete profiling result — the public return type of hpx.profile().

Carries PMU data, optional power data, run metadata, report paths, and the stored report evaluation. evaluation=None means no evaluation was supplied, not a valid verdict. The evaluation payload retains the experimental :class:RunEvaluation contract.

This in-memory result does not define a saved-record schema.

API tier: stable


Machine-readable: results.json · results.md, complete and lossless.