vibeqc.format_perf_report

vibeqc.format_perf_report(tracker)[source]

Render tracker as the on-disk perf report text.

Sections, in order:

  1. Header — total wall-time, thread count, timestamp.

  2. Phase summary — one row per phase, sorted by total wall time descending. Columns: phase name, n calls, total wall, total CPU, % of total wall, parallelism (cpu / (wall × n threads)).

  3. Top-3 hot phases + parallelism flags — phases consuming > 5% of wall AND with parallelism < 0.7× the available thread count are flagged (under-parallelised hot paths).

  4. Memory snapshots — labeled RSS samples taken at SCF transitions.

  5. Per-iteration SCF table — one row per SCF iteration, when populated.

The output is plain ASCII, no color codes — matches the .out file convention.

Parameters:

tracker (PerfTracker)

Return type:

str