Skip to content
heliaPROFILER
Reference
HELIA

helia_profiler

The entry points of the heliaPROFILER Python API: one call, one session, and the progress stream they report through.

Every name on this page is imported from helia_profiler.

API tier: stable

Generated from the src/helia_profiler tree fe269596788d6ab1604cf433559e96b5f48c1d13.

Re-exports

Name Source
ProfileConfig helia_profiler.ProfileConfig
ModelConfig helia_profiler.ModelConfig
EngineConfig helia_profiler.EngineConfig
TargetConfig helia_profiler.TargetConfig
ProfilingConfig helia_profiler.ProfilingConfig
OutputConfig helia_profiler.OutputConfig
BuildConfig helia_profiler.BuildConfig
HeartbeatConfig helia_profiler.HeartbeatConfig
TimeoutsConfig helia_profiler.TimeoutsConfig
ClockSelection helia_profiler.ClockSelection
OutputFormat helia_profiler.OutputFormat
PowerConfig helia_profiler.PowerConfig
EngineType helia_profiler.EngineType
Toolchain helia_profiler.Toolchain
Transport helia_profiler.Transport
Placement helia_profiler.Placement
ResetStrategy helia_profiler.ResetStrategy
CompatibilityBaseline helia_profiler.CompatibilityBaseline
CompatibilityResolution helia_profiler.CompatibilityResolution
QualificationState helia_profiler.QualificationState
load_compatibility_baseline helia_profiler.load_compatibility_baseline
DependencyLockProvenance helia_profiler.DependencyLockProvenance
read_dependency_lock_provenance helia_profiler.read_dependency_lock_provenance
qualification helia_profiler.qualification
Qualification helia_profiler.Qualification
RuntimeQualification helia_profiler.RuntimeQualification
runtimes helia_profiler.runtimes
RuntimeRecord helia_profiler.RuntimeRecord
RuntimeSource helia_profiler.RuntimeSource
QualifiedTarget helia_profiler.QualifiedTarget
ProfileResult helia_profiler.ProfileResult
PmuResult helia_profiler.PmuResult
PresetResult helia_profiler.PresetResult
LayerResult helia_profiler.LayerResult
FirmwareMeta helia_profiler.FirmwareMeta
RunMetadata helia_profiler.RunMetadata
ResultManifest helia_profiler.ResultManifest
ResultArtifact helia_profiler.ResultArtifact
ResultIssue helia_profiler.ResultIssue
ResultValidity helia_profiler.ResultValidity
RunStatus helia_profiler.RunStatus
load_result_manifest helia_profiler.load_result_manifest
PowerMode helia_profiler.PowerMode
PowerResult helia_profiler.PowerResult
PowerObservation helia_profiler.PowerObservation
PowerTerminalRecord helia_profiler.PowerTerminalRecord
OnDevicePowerSummary helia_profiler.OnDevicePowerSummary
PowerMetadata helia_profiler.PowerMetadata
MeasurementScope helia_profiler.MeasurementScope
ObservationMode helia_profiler.ObservationMode
PowerIntegrity helia_profiler.PowerIntegrity
CompareResult helia_profiler.CompareResult
assess_comparability helia_profiler.assess_comparability
ComparabilityAssessment helia_profiler.ComparabilityAssessment
ComparabilityIssue helia_profiler.ComparabilityIssue
ComparabilitySeverity helia_profiler.ComparabilitySeverity
ComparisonProfile helia_profiler.ComparisonProfile
evaluate_comparison_profile helia_profiler.evaluate_comparison_profile
ComparisonVerdict helia_profiler.ComparisonVerdict
MetricPolicy helia_profiler.MetricPolicy
MetricDirection helia_profiler.MetricDirection
MetricVerdict helia_profiler.MetricVerdict
MissingMetricPolicy helia_profiler.MissingMetricPolicy
VerdictStatus helia_profiler.VerdictStatus
evaluate_run helia_profiler.evaluate_run
RunEvaluation helia_profiler.RunEvaluation
ModelAnalysis helia_profiler.ModelAnalysis
SupportBundleOptions helia_profiler.SupportBundleOptions
collect_support_bundle helia_profiler.collect_support_bundle
write_support_bundle helia_profiler.write_support_bundle
verify_support_bundle helia_profiler.verify_support_bundle
SupportBundleManifest helia_profiler.SupportBundleManifest
SupportBundleSection helia_profiler.SupportBundleSection
HpxError helia_profiler.HpxError
ConfigError helia_profiler.ConfigError
PlatformError helia_profiler.PlatformError
EngineError helia_profiler.EngineError
FirmwareError helia_profiler.FirmwareError
BuildError helia_profiler.BuildError
DependencyError helia_profiler.DependencyError
VersionError helia_profiler.VersionError
LockError helia_profiler.LockError
NetworkError helia_profiler.NetworkError
CaptureError helia_profiler.CaptureError
DeterministicCaptureError helia_profiler.DeterministicCaptureError
PowerError helia_profiler.PowerError
ReportError helia_profiler.ReportError

Machine-readable model

  • __version__attributeAPI tier: stable
  • profilefunctionRun a full profiling session.
  • ProgressUpdateclassUser-meaningful progress within a pipeline stage.
  • SessionclassImmutable, branchable configuration for interactive HPX operations.
function

profile

Python

Run a full profiling session.

src/helia_profiler/api.py:25

profile(config: ProfileConfig, *, progress_sink: ProgressSink | None = None) -> ProfileResult

Run a full profiling session.

This is the main programmatic entry point. It builds the default pipeline, executes all stages, and returns a typed :class:ProfileResult.

Raises :class:HpxError (or a subclass) on failure.

API tier: stable

class

User-meaningful progress within a pipeline stage.

src/helia_profiler/pipeline.py:57

ProgressUpdate(
message: str,
kind: Literal['status', 'checkpoint'] = 'status',
completed: int | None = None,
total: int | None = None,
unit: str | None = None,
eta_s: float | None = None,
min_verbosity: int = 0,
) -> None

dataclass

User-meaningful progress within a pipeline stage.

API tier: stable

class

Session

Python

Immutable, branchable configuration for interactive HPX operations.

src/helia_profiler/session.py:85

Session(
yaml_path: Path | None = None,
_base: Mapping[str, Any] = lambda : ...(),
_overrides: Mapping[str, Any] = lambda : ...(),
) -> None

dataclass

Immutable, branchable configuration for interactive HPX operations.

Sessions retain unresolved configuration overrides so YAML values and board-derived defaults are resolved by the same validation path as the CLI. Every with_* method returns an independent session.

API tier: stable

method

from_yaml

Python

Create a session from an immutable snapshot of an HPX YAML config.

src/helia_profiler/session.py:108

from_yaml(path: str | Path) -> Self

classmethod

Create a session from an immutable snapshot of an HPX YAML config.

method

from_dict

Python

Create a session from unresolved configuration intent.

src/helia_profiler/session.py:114

from_dict(intent: Mapping[str, Any]) -> Self

classmethod

Create a session from unresolved configuration intent.

method

load

Python

Load a versioned unresolved-intent snapshot from JSON.

src/helia_profiler/session.py:121

load(path: str | Path) -> Self

classmethod

Load a versioned unresolved-intent snapshot from JSON.

method

Return the fully resolved and validated configuration snapshot.

src/helia_profiler/session.py:151

resolved_dict(model: str | Path | None = None) -> dict[str, Any]

Return the fully resolved and validated configuration snapshot.

method

save

Python

Persist unresolved intent as a versioned JSON snapshot.

src/helia_profiler/session.py:157

save(path: str | Path) -> Path

Persist unresolved intent as a versioned JSON snapshot.

method

Return a session with advanced raw configuration overrides merged in.

src/helia_profiler/session.py:173

with_overrides(overrides: Mapping[str, Any]) -> Self

Return a session with advanced raw configuration overrides merged in.

method

Return a session with top-level run options.

src/helia_profiler/session.py:201

with_options(
*,
verbose: int | None = None,
frozen: bool | None = None,
work_dir: str | Path | None = None,
clean: bool | None = None,
) -> Self

Return a session with top-level run options.

method

resolve

Python

Resolve and validate this session as a complete profile config.

src/helia_profiler/session.py:221

resolve(model: str | Path | None = None) -> ProfileConfig

Resolve and validate this session as a complete profile config.

method

profile

Python

Run a profile using this session's resolved configuration.

src/helia_profiler/session.py:228

profile(
model: str | Path | None = None,
*,
progress_sink: Callable[[ProgressUpdate], None] | None = None,
) -> ProfileResult

Run a profile using this session’s resolved configuration.

method

analyze

Python

Analyze the configured model without building or flashing firmware.

src/helia_profiler/session.py:239

analyze(model: str | Path | None = None) -> ModelAnalysis

Analyze the configured model without building or flashing firmware.

method

compare

Python

Compare two completed profiles and optionally write diff artifacts.

src/helia_profiler/session.py:250

compare(
baseline: str | Path | ProfileResult,
candidate: str | Path | ProfileResult,
*,
output_dir: str | Path | None = None,
profile: str | Path | ComparisonProfile | None = None,
) -> CompareResult

Compare two completed profiles and optionally write diff artifacts.

method

doctor

Python

Return structured host dependency checks.

src/helia_profiler/session.py:278

doctor(*, include_versions: bool = False) -> DoctorResult

Return structured host dependency checks.

Set include_versions to also compare installed tool and package versions against the HPX compatibility baseline.

method

show

Python

Pretty-print a typed interactive value and return it unchanged.

src/helia_profiler/session.py:297

show(value: Any, *, console: Console | None = None) -> Any

Pretty-print a typed interactive value and return it unchanged.

method

boards

Python

Return boards visible to this session's platform registry.

src/helia_profiler/session.py:303

boards() -> tuple[BoardDef, ...]

Return boards visible to this session’s platform registry.

method

counters

Python

Return registered PMU counters, optionally filtered by group.

src/helia_profiler/session.py:322

counters(group: str | None = None) -> tuple[PmuCounter, ...]

Return registered PMU counters, optionally filtered by group.

method

Inspect the target core visible through each connected probe.

src/helia_profiler/session.py:334

inspect_probes(board: str | None = None) -> tuple[JLinkProbeMatch, ...]

Inspect the target core visible through each connected probe.

method

Resolve the J-Link serial matching a board target.

src/helia_profiler/session.py:345

match_probe(board: str | None = None, *, serial: str | None = None) -> str

Resolve the J-Link serial matching a board target.

method

ports

Python

Return host serial ports relevant to HPX transports.

src/helia_profiler/session.py:363

ports(*, include_all: bool = False) -> tuple[SerialPortInfo, ...]

Return host serial ports relevant to HPX transports.

method

reset

Python

Reset the configured target through its J-Link probe.

src/helia_profiler/session.py:369

reset(board: str | None = None, *, serial: str | None = None, kind: Literal['debug', 'swpoi'] = 'debug') -> None

Reset the configured target through its J-Link probe.


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