diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2025-08-28 10:34:22 -0700 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-08-28 10:35:16 -0700 |
| commit | b47ea34a9b9e602e70bb69478c4abd2d9f1651d0 (patch) | |
| tree | 5df7f7d1717d2f03865caf1384e802ffe24be6a5 | |
| parent | c2d99d06474c22bdf03bba8f46c07a185046f970 (diff) | |
ZJIT: Fix a flipped stat
I'm sorry.
Another follow-up on https://github.com/ruby/ruby/pull/14378
| -rw-r--r-- | zjit/src/stats.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zjit/src/stats.rs b/zjit/src/stats.rs index 34fe38b10d..2be581fa2b 100644 --- a/zjit/src/stats.rs +++ b/zjit/src/stats.rs @@ -224,7 +224,7 @@ pub extern "C" fn rb_zjit_stats(_ec: EcPtr, _self: VALUE, target_key: VALUE) -> let total_insn_count = vm_insn_count + counters.zjit_insn_count; set_stat_usize!(hash, "total_insn_count", total_insn_count); - set_stat_f64!(hash, "ratio_in_zjit", 100.0 * vm_insn_count as f64 / total_insn_count as f64); + set_stat_f64!(hash, "ratio_in_zjit", 100.0 * counters.zjit_insn_count as f64 / total_insn_count as f64); } hash |
