diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-12-16 10:10:05 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-12-16 10:38:12 +0900 |
commit | 0b678cc9e5a5149e40765562142ed1dc05d09b53 (patch) | |
tree | a2dc78ae64a8323acecd43ee044cc1e5ed8786e1 /debug_counter.h | |
parent | 171f0431e766ba5b1a326386fff34a30f6cbc4c5 (diff) |
add vm_sync debug counters
* vm_sync_lock
* vm_sync_lock_enter
* vm_sync_lock_enter_nb
* vm_sync_lock_enter_cr
* vm_sync_barrier
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3910
Diffstat (limited to 'debug_counter.h')
-rw-r--r-- | debug_counter.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debug_counter.h b/debug_counter.h index 0e13464d00..593d2f701d 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -322,6 +322,13 @@ RB_DEBUG_COUNTER(theap_alloc) RB_DEBUG_COUNTER(theap_alloc_fail) RB_DEBUG_COUNTER(theap_evacuate) +// VM sync +RB_DEBUG_COUNTER(vm_sync_lock) +RB_DEBUG_COUNTER(vm_sync_lock_enter) +RB_DEBUG_COUNTER(vm_sync_lock_enter_nb) +RB_DEBUG_COUNTER(vm_sync_lock_enter_cr) +RB_DEBUG_COUNTER(vm_sync_barrier) + /* mjit_exec() counts */ RB_DEBUG_COUNTER(mjit_exec) RB_DEBUG_COUNTER(mjit_exec_not_added) |