Skip to content

Performance

Snapshot CPU%, RSS, thread count, footprint at the current moment.

perf()
# → { cpu_percent, rss_mb, threads, footprint_mb, dirty_mb, ... }

Save a baseline snapshot under a name for later comparison.

perf_baseline(name="signin-baseline")

Diff the current process state against a saved baseline.

perf_compare(name="signin-baseline")
# → { cpu_delta, rss_delta_mb, regression: bool }

Detailed memory breakdown (RSS, dirty, swapped, clean, footprint).

memory()