wrknv 2026-03-20
Add memray memory profiling suite and guard debug log calls
41 files · 845+ · 112-

Memray memory profiling suite

6 files changed
  • __init__.py Memray package with public API
  • baselines.py 149-line memory baseline tracking and comparison
  • fixtures.py 57-line pytest fixtures for memory profiling
  • runner.py 121-line memray profiling runner
  • scaffold.py 211-line scaffolding for memory profiling test generation
  • memray.py 48-line CLI command for memray operations
  • Added complete memory profiling subsystem with baseline tracking, pytest fixtures, profiling runner, and test scaffold generator for monitoring memory usage across the codebase instantiate behavioral
    4 files
    • __init__.py
    • baselines.py
    • runner.py
    • scaffold.py

Debug logging performance guards

4 files changed
  • base.py Guarded debug log f-strings with is_debug_enabled()
  • client.py Guarded debug log f-strings
  • install.py Guarded debug and trace log f-strings
  • detector.py Guarded debug log f-strings
  • Wrapped f-string debug() and trace() calls with is_debug_enabled()/is_trace_enabled() guards across 30+ modules to avoid unnecessary string formatting overhead decouple internal
    3 files
    • base.py
    • detector.py
    • install.py