Skip to content
heliaPROFILER
Reference
HELIA

frozen_run

Replayable run plans: every resolved setting, the model’s hash and the toolchain and runtime identities, saved so another host can rebuild the same run. Retained platform snapshots identify the catalog selection and effective profiler settings.

Every name on this page is imported from helia_profiler.

API tier: experimental

Generated from the src/helia_profiler tree e6916401b412b321b7dd82a4ccc2abc29b62fafa.

Machine-readable model

  • CatalogSourceclassIdentity of an explicit source included in a catalog.
  • CatalogProvenanceclassCatalog package, schema and data identities recorded at resolution.
  • TargetSelectionclassRequested target resolution and named HPX compatibility choices.
  • RegionExtentclassA retained application address range for one linker region.
  • PlatformSnapshotclassEffective HPX platform views and the catalog selection that supplied their facts.
  • FrozenModelclassThe model a plan was frozen against, identified by content.
  • ToolchainIdentityclassThe compiler a plan expects: name and exact version, never a path.
  • FrozenRuntimeclassThe engine and kernel sources a profile build uses.
  • LocalInputclassA local file or directory the build reads instead of a pinned source.
  • FrozenRunclassA resolved, replayable run plan.
class

Identity of an explicit source included in a catalog.

src/helia_profiler/platform/provenance.py:29

CatalogSource(label: str, schema_version: int, sha256: str, distribution_version: str | None = None) -> None

dataclass

Identity of an explicit source included in a catalog.

API tier: experimental

class

Catalog package, schema and data identities recorded at resolution.

src/helia_profiler/platform/provenance.py:39

CatalogProvenance(
package_version: str,
schema_version: int,
catalog_digest: str,
sources: tuple[CatalogSource, ...] = (),
) -> None

dataclass

Catalog package, schema and data identities recorded at resolution.

API tier: experimental

class

Requested target resolution and named HPX compatibility choices.

src/helia_profiler/platform/provenance.py:49

TargetSelection(
origin: Literal['catalog', 'hpx-custom', 'sdk-descriptor'],
catalog: CatalogProvenance | None,
target_id: str | None = None,
core: str | None = None,
boot: str | None = None,
implementation: str | None = None,
addons: tuple[str, ...] = (),
compatibility: tuple[str, ...] = (),
) -> None

dataclass

Requested target resolution and named HPX compatibility choices.

API tier: experimental

class

Effective HPX platform views and the catalog selection that supplied their facts.

src/helia_profiler/platform/provenance.py:71

PlatformSnapshot(
board: BoardDef,
soc: SocDef,
selection: TargetSelection,
link_family: LinkFamily,
linker_profile: str,
app_regions: tuple[RegionExtent, ...],
load_address: int | None,
expected_linker: LinkerInput | None = None,
) -> None

dataclass

Effective HPX platform views and the catalog selection that supplied their facts.

API tier: experimental

class

The compiler a plan expects: name and exact version, never a path.

src/helia_profiler/runs/plan.py:119

ToolchainIdentity(name: str, version: str | None, unavailable_reason: str | None = None) -> None

dataclass

The compiler a plan expects: name and exact version, never a path.

version holds the version-bearing lines of <compiler> --version; it is None when the compiler could not be run, with the reason in unavailable_reason.

API tier: experimental

attribute

lines

Python

The version-bearing lines version joins, or none when it is unknown.

src/helia_profiler/runs/plan.py:133

lines: tuple[str, ...]

The version-bearing lines version joins, or none when it is unknown.

class

The engine and kernel sources a profile build uses.

src/helia_profiler/runs/plan.py:138

FrozenRuntime(
name: str,
version: str | None,
source_commit: str | None,
kernels_module: str | None = None,
kernels_commit: str | None = None,
unavailable_reason: str | None = None,
) -> None

dataclass

The engine and kernel sources a profile build uses.

Commits are NSX module or source revisions from the compatibility baseline or the installed package. kernels_commit is None when the engine links no kernel library or its provider is overridden.

API tier: experimental

class

A local file or directory the build reads instead of a pinned source.

src/helia_profiler/runs/plan.py:155

LocalInput(setting: str, path: str, kind: str, sha256: str | None = None) -> None

dataclass

A local file or directory the build reads instead of a pinned source.

Files are identified by content. A directory is recorded by path only, so a plan with one is not portable to another host.

API tier: experimental

class

FrozenRun

Python

A resolved, replayable run plan.

src/helia_profiler/runs/plan.py:177

FrozenRun(
settings: Mapping[str, Any],
model: FrozenModel,
baseline_id: str,
baseline_fingerprint: str,
qualification: str,
overrides: tuple[str, ...],
local_inputs: tuple[LocalInput, ...],
environment: Mapping[str, str],
toolchain: ToolchainIdentity,
runtime: FrozenRuntime | None,
hpx_version: str,
platform: PlatformSnapshot | None = None,
) -> None

dataclass

A resolved, replayable run plan. Build it with :meth:Session.freeze.

API tier: experimental

attribute

The hpx.intent hash of what this plan asks for; the HPX release is not part of it.

src/helia_profiler/runs/plan.py:203

intent_hash: str

The hpx.intent hash of what this plan asks for; the HPX release is not part of it.

attribute

portable

Python

Whether every input is pinned or content-identified, so another host can rebuild it.

src/helia_profiler/runs/plan.py:208

portable: bool

Whether every input is pinned or content-identified, so another host can rebuild it.

A compiler environment variable makes a plan host-specific, since the files it may name are not tracked, and so do a dependency selector that names a branch, tag or version rather than a commit and a custom heliaRT release, whose archive is not content-identified.

method

to_dict

Python

Serialize a complete plan, refusing missing recorded platform input.

src/helia_profiler/runs/plan.py:222

to_dict() -> dict[str, Any]

Serialize a complete plan, refusing missing recorded platform input.

method

save

Python

Write the plan as JSON, refusing its source model path or aliases.

src/helia_profiler/runs/plan.py:307

save(path: str | Path) -> Path

Write the plan as JSON, refusing its source model path or aliases.

method

load

Python

Read a plan written by :meth:save, verifying its intent hash.

src/helia_profiler/runs/plan.py:325

load(path: str | Path) -> FrozenRun

classmethod

Read a plan written by :meth:save, verifying its intent hash.

method

config

Python

The :class:ProfileConfig this plan describes, on this host.

src/helia_profiler/runs/plan.py:339

config(*, model: str | Path | None = None, host: Mapping[str, Any] | None = None) -> ProfileConfig

The :class:ProfileConfig this plan describes, on this host.

host supplies host-local settings for the replaying host, for example {"target": {"jlink_serial": "..."}, "output": {"dir": "..."}}; any other key is refused. Refuses when this HPX carries a different baseline, when the model (the recorded path, or model when it moved) has a different hash, when a local input differs or is missing, or when this host would build something else: a source-path environment variable set, unset or changed, another compiler version, or another engine runtime. Only the model can move; other local files must be at their recorded paths.

method

build

Python

Compile this plan for fixture's pinned inputs; see :func:~heliaprofiler.build.

src/helia_profiler/runs/plan.py:388

build(fixture: TypedFixture, **options: Any = {}) -> CompiledBuild

Compile this plan for fixture’s pinned inputs; see :func:~helia_profiler.build.


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