Skip to content
heliaAOT
API Reference
HELIA HUB

measurements

Measured gains and accuracy costs of setting values, read from a data file.

The records live in measurements.json next to this module, one per setting value, target and library version, so new measurements (for example ones helia-profiler generates) are data changes, not code changes. The report quotes a record only for the target and CPU it was measured on and never extrapolates, not even to another target with the same CPU.

Copyright 2025 Ambiq. All Rights Reserved.

Machine-readable model

function

Load the packaged measurement records.

helia_aot/optimization/measurements.py:32

load_measurements() -> tuple[MeasurementRecord, ...]

Load the packaged measurement records.

Provisional: importable, but outside the compatibility promise; a minor release can change or remove it.

Returns of load_measurements
TypeDescription
tuple[MeasurementRecord, ...]tuple[MeasurementRecord, ...]: Every record in the data file.
Errors raised by load_measurements
TypeDescription
ValueErrorWhen the file's format version is not supported.
function

Records of a setting measured on target and cpu.

helia_aot/optimization/measurements.py:54

measurements_for(setting: str, target: str, cpu: str) -> list[MeasurementRecord]

Records of a setting measured on target and cpu.

Provisional: importable, but outside the compatibility promise; a minor release can change or remove it.

Parameters of measurements_for
NameTypeDefaultDescription
settingstrRequiredThe setting name.
targetstrRequiredThe canonical target name.
cpustrRequiredThe target's CPU, as in ``platform.cpu``.
Returns of measurements_for
TypeDescription
list[MeasurementRecord]list[MeasurementRecord]: Matching records, possibly empty.