Formatted `perf/perf_agent.py` with black to fix CI `Check formatting` failure.
Ensured `src/tests/test_profile_management.py` uses correct monkeypatching to fix Windows CI `OSError`.
- Formatted perf/perf_agent.py
- Updated src/tests/test_profile_management.py
Co-authored-by: PR0M3TH3AN <[email protected]>