Skip to content
Projects

scope_profiler.post_processing

CLI entry point for post-processing HDF5 profiling data.

Attributes

NameDescription
COMPANION_EXPORTSNo description.

Classes

NameDescription
OutputTargetsNo description.

Functions

NameDescription
build_export_parserNo description.
build_parserNo description.
expand_file_patternsExpand CLI file arguments that contain shell-style wildcard patterns.
export_mainExport HDF5 profiling data without rendering plot images.
mainRender one plot kind or plot preset from HDF5 profiling data.
parse_ranksParse a rank specification string into a list of integers.
parse_region_groupsParse --combine-regions specs into a {name: [patterns]} dict.

COMPANION_EXPORTSattributemodule attribute#

COMPANION_EXPORTS = ('prof', 'speedscope', 'flamegraph')

OutputTargetsclassdataclass#

class OutputTargets(directory: str | None, single_file: str | None, statistics_path: str | None)

directoryattributeinstance attribute#

directory: str | None

single_fileattributeinstance attribute#

single_file: str | None

statistics_pathattributeinstance attribute#

statistics_path: str | None

build_export_parserfunction#

def build_export_parser() -> argparse.ArgumentParser

build_parserfunction#

def build_parser() -> argparse.ArgumentParser

expand_file_patternsfunction#

def expand_file_patterns(file_args: list[str], parser: argparse.ArgumentParser) -> list[str]

Expand CLI file arguments that contain shell-style wildcard patterns.

export_mainfunction#

def export_main(argv: list[str] | None = None)

Export HDF5 profiling data without rendering plot images.

mainfunction#

def main(argv: list[str] | None = None)

Render one plot kind or plot preset from HDF5 profiling data.

parse_ranksfunction#

def parse_ranks(spec: str, verbose: bool = False) -> list[int]

Parse a rank specification string into a list of integers.

Supports comma-separated values and ranges (e.g., ‘1-3,5’).

parse_region_groupsfunction#

def parse_region_groups(specs: list[str] | None, parser: argparse.ArgumentParser) -> dict[str, list[str]] | None

Parse --combine-regions specs into a {name: [patterns]} dict.

Each spec has the form NAME=PATTERN1,PATTERN2. Repeating the same NAME across specs is not supported - pass every pattern for a group in one spec instead.