зеркало из https://github.com/github/ruby.git
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:
Родитель
26d56f7b6f
Коммит
017cb09eb6
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче