From b47ea34a9b9e602e70bb69478c4abd2d9f1651d0 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 28 Aug 2025 10:34:22 -0700 Subject: ZJIT: Fix a flipped stat I'm sorry. Another follow-up on https://github.com/ruby/ruby/pull/14378 --- zjit/src/stats.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3