summaryrefslogtreecommitdiff
path: root/yjit
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-16 15:31:13 -0800
committerGitHub <noreply@github.com>2022-11-16 15:31:13 -0800
commit1b8236acc212a6751da7248eb3f22b0262ca0623 (patch)
treeebac24f25950ee44e1233763c9fffb6ec013839c /yjit
parent6de4032e407b5e4bcf837332b9980a5892282df8 (diff)
YJIT: Add compiled_branch_count stats (#6746)
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'yjit')
-rw-r--r--yjit/src/core.rs1
-rw-r--r--yjit/src/stats.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/yjit/src/core.rs b/yjit/src/core.rs
index d07f8e0c8c..f2bde4a010 100644
--- a/yjit/src/core.rs
+++ b/yjit/src/core.rs
@@ -1669,6 +1669,7 @@ fn make_branch_entry(block: &BlockRef, gen_fn: BranchGenFn) -> BranchRef {
// Add to the list of outgoing branches for the block
let branchref = Rc::new(RefCell::new(branch));
block.borrow_mut().push_outgoing(branchref.clone());
+ incr_counter!(compiled_branch_count);
return branchref;
}
diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs
index f3d01a120e..03eec21b50 100644
--- a/yjit/src/stats.rs
+++ b/yjit/src/stats.rs
@@ -267,6 +267,7 @@ make_counters! {
vm_insns_count,
compiled_iseq_count,
compiled_block_count,
+ compiled_branch_count,
compilation_failure,
freed_iseq_count,