| 481 | |
| 482 | #ifdef CBM_DIAGNOSTICS_ENABLE_TEST_API |
| 483 | static void diag_test_pause_writer(void) { |
| 484 | if (!atomic_load_explicit(&g_diag_test_hold_writer, memory_order_acquire)) { |
| 485 | return; |
| 486 | } |
| 487 | atomic_store_explicit(&g_diag_test_writer_reached, true, memory_order_release); |
| 488 | while (atomic_load_explicit(&g_diag_test_hold_writer, memory_order_acquire)) { |
| 489 | diag_sleep_ms(DIAG_WAIT_SLICE_MS); |
| 490 | } |
| 491 | } |
| 492 | #endif |
| 493 | |
| 494 | static void append_trajectory(long uptime, size_t rss, size_t peak_rss, size_t commit, |
no test coverage detected