bundle.perf_report.storage.base¶
Shared HDF5 storage utilities for performance data.
Attributes¶
Functions¶
|
Make a string safe for use as an HDF5 group key (no slashes). |
|
|
|
Write metadata attributes under the given prefix. |
|
List all stored version keys. |
|
List all platform IDs stored under a version. |
|
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.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.