bundle.perf_report.storage.base

Shared HDF5 storage utilities for performance data.

Attributes

Functions

safe_key(→ str)

Make a string safe for use as an HDF5 group key (no slashes).

run_prefix(→ str)

write_meta(store, prefix, machine_id, bundle_version, ...)

Write metadata attributes under the given prefix.

list_versions(→ list[str])

List all stored version keys.

list_platforms(→ list[str])

List all platform IDs stored under a version.

load_meta(→ dict)

Read the metadata for a specific version+platform run.

Module Contents

bundle.perf_report.storage.base.MAX_NAME_LEN = 128
bundle.perf_report.storage.base.MAX_FILE_LEN = 256
bundle.perf_report.storage.base.MAX_FUNC_LEN = 128
bundle.perf_report.storage.base.safe_key(text: str) str

Make a string safe for use as an HDF5 group key (no slashes).

bundle.perf_report.storage.base.run_prefix(version: str, platform_id: str) str
bundle.perf_report.storage.base.write_meta(store: bundle.hdf5.Store, prefix: str, machine_id: str, bundle_version: str, platform_id: str, platform_meta: dict | None = None)

Write metadata attributes under the given prefix.

bundle.perf_report.storage.base.list_versions(h5_path: pathlib.Path) list[str]

List all stored version keys.

bundle.perf_report.storage.base.list_platforms(h5_path: pathlib.Path, version: str) list[str]

List all platform IDs stored under a version.

bundle.perf_report.storage.base.load_meta(h5_path: pathlib.Path, version: str, platform_id: str) dict

Read the metadata for a specific version+platform run.