scope_profiler.plotting_scripts.statistics
Region-duration statistics collection (JSON export, no chart rendering).
Functions
| Name | Description |
|---|---|
collect_region_statistics | Collect aggregate region-duration statistics for one or more profiling files. |
write_region_statistics_json | Write 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) -> dictCollect 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) -> dictWrite aggregate region-duration statistics to a JSON file.