cpython/Lib/test/test_profiling/test_sampling_profiler
Pablo Galindo Salgado ef51a7c8f3
gh-138122: Make sampling profiler integration tests more resilient (#142382)
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.
2025-12-07 22:41:15 +00:00
..
__init__.py
_live_collector_helpers.py gh-141645: Add a TUI mode to the new tachyon profiler (#141646) 2025-11-20 18:27:17 +00:00
helpers.py gh-138122: Make sampling profiler integration tests more resilient (#142382) 2025-12-07 22:41:15 +00:00
mocks.py GH-141565: Add async code awareness to Tachyon (#141533) 2025-12-06 19:31:40 +00:00
test_advanced.py gh-138122: Make sampling profiler integration tests more resilient (#142382) 2025-12-07 22:41:15 +00:00
test_async.py GH-141565: Add async code awareness to Tachyon (#141533) 2025-12-06 19:31:40 +00:00
test_cli.py GH-141565: Add async code awareness to Tachyon (#141533) 2025-12-06 19:31:40 +00:00
test_collectors.py gh-138122: New Tachyon UI (#142116) 2025-12-01 17:34:14 +00:00
test_integration.py gh-138122: Make sampling profiler integration tests more resilient (#142382) 2025-12-07 22:41:15 +00:00
test_live_collector_core.py gh-141645: Refactor tachyon's live TUI tests to not use private fields (#141806) 2025-11-21 00:35:37 +00:00
test_live_collector_interaction.py gh-142318: Fix typing 'q' at interactive help screen exiting Tachyon (#142319) 2025-12-05 19:36:28 +00:00
test_live_collector_ui.py gh-141645: Refactor tachyon's live TUI tests to not use private fields (#141806) 2025-11-21 00:35:37 +00:00
test_modes.py gh-138122: Make sampling profiler integration tests more resilient (#142382) 2025-12-07 22:41:15 +00:00
test_profiler.py gh-141999: Handle KeyboardInterrupt when sampling in the new tachyon profiler (#142000) 2025-11-30 02:49:13 +00:00
test_trend_tracker.py gh-141645: Add a TUI mode to the new tachyon profiler (#141646) 2025-11-20 18:27:17 +00:00