diff options
author | Takashi Kokubun <[email protected]> | 2022-11-16 15:31:13 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-16 15:31:13 -0800 |
commit | 1b8236acc212a6751da7248eb3f22b0262ca0623 (patch) | |
tree | ebac24f25950ee44e1233763c9fffb6ec013839c /yjit/src | |
parent | 6de4032e407b5e4bcf837332b9980a5892282df8 (diff) |
YJIT: Add compiled_branch_count stats (#6746)
Notes
Notes:
Merged-By: k0kubun <[email protected]>
Diffstat (limited to 'yjit/src')
-rw-r--r-- | yjit/src/core.rs | 1 | ||||
-rw-r--r-- | yjit/src/stats.rs | 1 |
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, |