1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Update yjit_iface.c

This commit is contained in:
Maxime Chevalier-Boisvert 2021-04-07 13:10:14 -04:00 committed by Alan Wu
parent 7f4b9e8e61
commit 543bdde6c2

View file

@ -795,7 +795,7 @@ print_insn_count_buffer(const struct insn_count *buffer, int how_many, int left_
int64_t retired_in_yjit = yjit_runtime_counters.exec_instruction - total_exit_count;
// Average length of instruction sequences executed by YJIT
double avg_len_in_yjit = (double)yjit_runtime_counters.exec_instruction / total_exit_count;
double avg_len_in_yjit = (double)retired_in_yjit / total_exit_count;
// Proportion of instructions that retire in YJIT
double total_insns_count = retired_in_yjit + vm_insns_count;