зеркало из https://github.com/github/ruby.git
add debug counter to count `call` reusing cases.
This commit is contained in:
Родитель
618d091151
Коммит
fbe229906b
|
@ -46,6 +46,7 @@ RB_DEBUG_COUNTER(mc_miss_by_distinct)
|
|||
RB_DEBUG_COUNTER(mc_miss_by_refine)
|
||||
RB_DEBUG_COUNTER(mc_miss_by_visi)
|
||||
RB_DEBUG_COUNTER(mc_miss_spurious)
|
||||
RB_DEBUG_COUNTER(mc_miss_reuse_call)
|
||||
|
||||
/*
|
||||
* call cache fastpath usage
|
||||
|
|
|
@ -1458,6 +1458,7 @@ calccall(const struct rb_call_data *cd, const rb_callable_method_entry_t *me)
|
|||
}
|
||||
else {
|
||||
RB_DEBUG_COUNTER_INC(mc_miss_spurious);
|
||||
(void)RB_DEBUG_COUNTER_INC_IF(mc_miss_reuse_call, cc->call != vm_call_general);
|
||||
return cc->call;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче