mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
The tests were flaky on slow machines because subprocesses could finish before enough samples were collected. This adds synchronization similar to test_external_inspection: test scripts now signal when they start working, and the profiler waits for this signal before sampling. Test scripts now run in infinite loops until killed rather than for fixed iterations, ensuring the profiler always has active work to sample regardless of machine speed. |
||
|---|---|---|
| .. | ||
| test_sampling_profiler | ||
| __init__.py | ||
| __main__.py | ||
| test_heatmap.py | ||
| test_tracing_profiler.py | ||