pyvider-hcl 2026-03-20
Added memray memory profiling infrastructure for HCL hot paths
14 files · 561+

Memray profiling scripts

5 files changed
  • __init__.py Package init for memray scripts
  • memray_analysis.py Post-run analysis utilities for memray binaries -- stats parsing, flamegraph generation, report output (155 lines)
  • memray_pretty_print_stress.py Stress test for pretty_print_cty memory usage (75 lines)
  • memray_resource_factory_stress.py Stress test for resource factory memory usage (72 lines)
  • memray_type_parsing_stress.py Stress test for type parsing memory usage (42 lines)
  • Added scripts/memray/memray_analysis.py with stats parsing, flamegraph HTML generation, and analysis report output qualify behavioral
    1 file
    • memray_analysis.py
  • Added stress test scripts for pretty_print, resource_factory, and type_parsing hot paths qualify internal
    3 files
    • memray_pretty_print_stress.py
    • memray_resource_factory_stress.py
    • memray_type_parsing_stress.py

Memray pytest tests with baseline tracking

6 files changed
  • __init__.py Package init for memray tests
  • baselines.json Baseline allocation counts for regression tracking
  • conftest.py Fixtures for memray profiling -- output dir, baseline loading, threshold assertions (166 lines)
  • test_pretty_print_memory.py Memory test for pretty print operations
  • test_resource_factory_memory.py Memory test for resource factory operations
  • test_type_parsing_memory.py Memory test for type parsing operations
  • Added tests/memray/conftest.py with fixtures for memray output, baseline loading, and allocation threshold assertions qualify behavioral
    1 file
    • conftest.py
  • Added memory tests for pretty_print, resource_factory, and type_parsing with baseline regression tracking qualify internal
    3 files
    • test_pretty_print_memory.py
    • test_resource_factory_memory.py
    • test_type_parsing_memory.py

Configuration updates for memray integration

3 files changed
  • .gitignore Added memray-output/ to gitignore
  • pyproject.toml Added memray pytest marker
  • wrknv.toml Added memray task configuration
  • Added memray-output/ to .gitignore and memray pytest marker to pyproject.toml baseline internal
    2 files
    • .gitignore
    • pyproject.toml
  • Added memray task entries in wrknv.toml baseline internal
    1 file
    • wrknv.toml