From 017cb09eb6d40b3d7f7ca08db4aa16cfb91012f2 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Fri, 29 Mar 2019 13:24:56 +0000 Subject: Add debug counter for rb_mjit_unit_list git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- mjit.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mjit.c') diff --git a/mjit.c b/mjit.c index a1c8f238c2..710f370947 100644 --- a/mjit.c +++ b/mjit.c @@ -781,6 +781,12 @@ mjit_finish(bool close_handle_p) if (!mjit_enabled) return; +#if USE_DEBUG_COUNTER + rb_debug_counter_add(RB_DEBUG_COUNTER_mjit_length_unit_queue, unit_queue.length, 1); + rb_debug_counter_add(RB_DEBUG_COUNTER_mjit_length_active_units, active_units.length, 1); + rb_debug_counter_add(RB_DEBUG_COUNTER_mjit_length_compact_units, compact_units.length, 1); +#endif + /* Wait for pch finish */ verbose(2, "Stopping worker thread"); CRITICAL_SECTION_START(3, "in mjit_finish to wakeup from pch"); -- cgit v1.2.3