mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
26d56f7b6f
commit
017cb09eb6
2 changed files with 11 additions and 0 deletions
|
@ -263,6 +263,11 @@ RB_DEBUG_COUNTER(mjit_exec_not_added_add_iseq)
|
|||
RB_DEBUG_COUNTER(mjit_exec_not_ready)
|
||||
RB_DEBUG_COUNTER(mjit_exec_not_compiled)
|
||||
|
||||
/* rb_mjit_unit_list length */
|
||||
RB_DEBUG_COUNTER(mjit_length_unit_queue)
|
||||
RB_DEBUG_COUNTER(mjit_length_active_units)
|
||||
RB_DEBUG_COUNTER(mjit_length_compact_units)
|
||||
|
||||
/* load (not implemented yet) */
|
||||
/*
|
||||
RB_DEBUG_COUNTER(load_files)
|
||||
|
|
6
mjit.c
6
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");
|
||||
|
|
Loading…
Reference in a new issue