Performance
Snapshot CPU%, RSS, thread count, footprint at the current moment.
perf()# → { cpu_percent, rss_mb, threads, footprint_mb, dirty_mb, ... }perf_baseline
Section titled “perf_baseline”Save a baseline snapshot under a name for later comparison.
perf_baseline(name="signin-baseline")perf_compare
Section titled “perf_compare”Diff the current process state against a saved baseline.
perf_compare(name="signin-baseline")# → { cpu_delta, rss_delta_mb, regression: bool }memory
Section titled “memory”Detailed memory breakdown (RSS, dirty, swapped, clean, footprint).
memory()