Memray Memory Profiling Infrastructure
30 files · 1,238+ · 130-

Memray Memory Profiling Infrastructure

15 files changed
  • __init__.py Modified
  • memray_analysis.py New file (157 lines)
  • memray_config_stress.py New file (58 lines)
  • memray_handshake_stress.py New file (86 lines)
  • memray_protocol_stress.py New file (64 lines)
  • memray_rate_limiter_stress.py New file (72 lines)
  • memray_transport_stress.py New file (50 lines)
  • handshake.py Updated (6 insertions, 2 deletions)
  • process.py Updated (4 insertions, 3 deletions)
  • core.py Updated (36 insertions, 25 deletions)
  • core.py Updated (10 insertions, 1 deletions)
  • tcp.py Updated (18 insertions, 8 deletions)
  • transport.py Updated (27 insertions, 15 deletions)
  • types.py Updated (38 insertions, 47 deletions)
  • __init__.py Updated test (0 insertions, 0 deletions)
  • Added memray profiling setup for pyvider-rpcplugin hot paths streamline internal
    5 files
    • __init__.py
    • memray_analysis.py
    • memray_config_stress.py
    • memray_handshake_stress.py
    • memray_protocol_stress.py
  • Identifies memory allocation patterns in the Terraform plugin RPC layer interface internal
    5 files
    • __init__.py
    • memray_analysis.py
    • memray_config_stress.py
    • memray_handshake_stress.py
    • memray_protocol_stress.py

Guard f-String Debug Calls

15 files changed
  • .gitignore New file (3 lines)
  • AGENTS.md Added documentation (220 lines)
  • pyproject.toml Updated (13 insertions, 1 deletions)
  • test_types_connection_client.py Updated test (32 insertions, 26 deletions)
  • test_handshake_responses.py Simplified test (1 insertions, 2 deletions)
  • baselines.json Added test code (7 lines)
  • conftest.py Added test code (8 lines)
  • test_config_memory.py Added test code (16 lines)
  • test_handshake_memory.py Added test code (16 lines)
  • test_protocol_memory.py Added test code (16 lines)
  • test_rate_limiter_memory.py Added test code (16 lines)
  • test_transport_memory.py Added test code (16 lines)
  • test_server_health_check.py Added test code (2 lines)
  • uv.lock New file (240 lines)
  • wrknv.toml New file (6 lines)
  • Wrapped debug() log calls with is_debug_enabled() guards to prevent f-string evaluation overhead when debug logging is inactive streamline behavioral
    5 files
    • .gitignore
    • AGENTS.md
    • pyproject.toml
    • test_types_connection_client.py
    • test_handshake_responses.py