pytorch/test/profiler
Huy Do fe0e9fb385 Fix flaky SIGSEGV crash in test_profile_memory (#136304)
Fixes https://github.com/pytorch/pytorch/issues/132331

We need another barrier here to ensure that the main thread doesn't stop the profiler while other threads are still using it (and crash).  I can reliably reproduce the issue with `pytest -v test/profiler/test_cpp_thread.py -k test_profile_memory --flake-finder`.

### Testing

`pytest -v test/profiler/test_cpp_thread.py --flake-finder` all passes.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/136304
Approved by: https://github.com/briancoutinho
2024-09-20 02:56:49 +00:00
..
profiler_utils_mock_events.json
test_cpp_thread.cpp Fix flaky SIGSEGV crash in test_profile_memory (#136304) 2024-09-20 02:56:49 +00:00
test_cpp_thread.py Fix lint errors in fbcode (#135614) 2024-09-13 02:04:34 +00:00
test_cpp_thread_lib.pyi Fix lint errors in fbcode (#135614) 2024-09-13 02:04:34 +00:00
test_execution_trace.py
test_memory_profiler.py
test_profiler.py [gpu-profiler] Expose active and repeat in os env var (#135757) 2024-09-13 17:48:27 +00:00
test_profiler_tree.py
test_record_function.py
test_torch_tidy.py