format_summary#

Profiler.format_summary(*, min_total_seconds: float = 0.0) str#

Return a tree-formatted string summarizing recorded categories.

The summary lists every measured category indented according to its hierarchy depth. Each line shows the call count, the total wall-clock time spent, the average per call, and the share of the top-level total.

Parameters:
min_total_secondsfloat, optional

Hide categories whose total time is below this threshold (default: 0.0, show everything).

Returns:
str

Multi-line summary table. If no measurements have been recorded, returns a single line indicating that.