summaryrefslogtreecommitdiff
path: root/debug_counter.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-16 10:10:05 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-16 10:38:12 +0900
commit0b678cc9e5a5149e40765562142ed1dc05d09b53 (patch)
treea2dc78ae64a8323acecd43ee044cc1e5ed8786e1 /debug_counter.h
parent171f0431e766ba5b1a326386fff34a30f6cbc4c5 (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.h7
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)