Skip to content

novaphy.PerformancePhaseStat

Aggregate per-phase timing statistics captured by PerformanceMonitor.

Attributes

Attribute Description
name Phase name.
avg_ms Average time in milliseconds.
min_ms, max_ms Min / max bounds.
count Number of times the phase was entered.

Example

slowest = sorted(monitor.phase_stats(), key=lambda s: s.avg_ms, reverse=True)
for stat in slowest[:5]:
    print(f"{stat.name}: avg={stat.avg_ms:.2f}ms, max={stat.max_ms:.2f}ms")

See Also