diff options
| -rw-r--r-- | zjit/src/stats.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/zjit/src/stats.rs b/zjit/src/stats.rs index 556a1417a4..96d75b7aec 100644 --- a/zjit/src/stats.rs +++ b/zjit/src/stats.rs @@ -717,6 +717,21 @@ pub extern "C" fn rb_zjit_reset_stats_bang(_ec: EcPtr, _self: VALUE) -> VALUE { // Reset exit counters for YARV instructions exit_counters.as_mut_slice().fill(0); + // Reset send fallback counters + ZJITState::get_send_fallback_counters().as_mut_slice().fill(0); + + // Reset not-inlined counters + ZJITState::get_not_inlined_cfunc_counter_pointers().iter_mut() + .for_each(|b| { **(b.1) = 0; }); + + // Reset not-annotated counters + ZJITState::get_not_annotated_cfunc_counter_pointers().iter_mut() + .for_each(|b| { **(b.1) = 0; }); + + // Reset ccall counters + ZJITState::get_ccall_counter_pointers().iter_mut() + .for_each(|b| { **(b.1) = 0; }); + Qnil } |
