YJIT: add new counters for deferred compilation and queued blocks (#6837)
This commit is contained in:
parent
ab4c7077cc
commit
d98d84b75d
Notes:
git
2022-11-30 19:09:39 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>
2
yjit.rb
2
yjit.rb
@ -261,6 +261,8 @@ module RubyVM::YJIT
|
||||
$stderr.puts "compiled_iseq_count: " + ("%10d" % stats[:compiled_iseq_count])
|
||||
$stderr.puts "compiled_block_count: " + ("%10d" % stats[:compiled_block_count])
|
||||
$stderr.puts "compiled_branch_count: " + ("%10d" % stats[:compiled_branch_count])
|
||||
$stderr.puts "block_next_count: " + ("%10d" % stats[:block_next_count])
|
||||
$stderr.puts "defer_count: " + ("%10d" % stats[:defer_count])
|
||||
$stderr.puts "freed_iseq_count: " + ("%10d" % stats[:freed_iseq_count])
|
||||
$stderr.puts "invalidation_count: " + ("%10d" % stats[:invalidation_count])
|
||||
$stderr.puts "constant_state_bumps: " + ("%10d" % stats[:constant_state_bumps])
|
||||
|
@ -1489,6 +1489,8 @@ fn gen_block_series_body(
|
||||
_ => break
|
||||
};
|
||||
|
||||
incr_counter!(block_next_count);
|
||||
|
||||
// Get id and context for the new block
|
||||
let requested_id = last_target.id;
|
||||
let requested_ctx = &last_target.ctx;
|
||||
@ -2089,6 +2091,8 @@ pub fn defer_compilation(
|
||||
gen_jump_branch(asm, dst_addr, None, BranchShape::Default);
|
||||
}
|
||||
asm.mark_branch_end(&branch_rc);
|
||||
|
||||
incr_counter!(defer_count);
|
||||
}
|
||||
|
||||
fn remove_from_graph(blockref: &BlockRef) {
|
||||
|
@ -269,6 +269,8 @@ make_counters! {
|
||||
compiled_block_count,
|
||||
compiled_branch_count,
|
||||
compilation_failure,
|
||||
block_next_count,
|
||||
defer_count,
|
||||
freed_iseq_count,
|
||||
|
||||
exit_from_branch_stub,
|
||||
|
Loading…
x
Reference in New Issue
Block a user