scope_profiler.plotting_scripts.gantt
Gantt chart rendering: per-rank timeline bars for one or more profiling runs.
Functions
| Name | Description |
|---|---|
plot_gantt | Plot a Gantt chart of all (or selected) regions with per-rank lanes using maxplotlib. |
plot_ganttfunction#
def plot_gantt(profiling_data: ProfilingResults | Sequence[ProfilingResults], ranks: list[int] | int | None = None, include: list[str] | str | None = None, exclude: list[str] | str | None = None, filepath: str | None = None, show: bool = False, verbose: bool = True, cmap: str = DEFAULT_CMAP, data_filepath: str | Path | None = None, data_format: str = 'csv', backend: str = 'matplotlib', return_fig: bool = False, min_duration: float = 0.0, start_time: float | None = None, end_time: float | None = None, aggregate_calls: int = 1, collapse_depth: int | None = None) -> object | NonePlot a Gantt chart of all (or selected) regions with per-rank lanes using maxplotlib.
Parameters
backend : str
Backend to use for rendering: “matplotlib” (default) or “plotly”.
return_fig : bool
Return the rendered figure instead of the default None. Matplotlib
returns (fig, axes); Plotly returns its figure object.