Skip to content
Projects

scope_profiler.plotting_scripts.statistics

Region-duration statistics collection (JSON export, no chart rendering).

Functions

NameDescription
collect_region_statisticsCollect aggregate region-duration statistics for one or more profiling files.
write_region_statistics_jsonWrite aggregate region-duration statistics to a JSON file.

collect_region_statisticsfunction#

def collect_region_statistics(profiling_data: ProfilingResults | Sequence[ProfilingResults], ranks: list[int] | int | None = None, include: list[str] | str | None = None, exclude: list[str] | str | None = None, labels: Sequence[str] | None = None) -> dict

Collect aggregate region-duration statistics for one or more profiling files.

write_region_statistics_jsonfunction#

def write_region_statistics_json(profiling_data: ProfilingResults | Sequence[ProfilingResults], filepath: str | Path, ranks: list[int] | int | None = None, include: list[str] | str | None = None, exclude: list[str] | str | None = None, labels: Sequence[str] | None = None) -> dict

Write aggregate region-duration statistics to a JSON file.