Add compiled_block_count

This commit is contained in:
Takashi Kokubun 2023-02-07 00:00:09 -08:00
parent 5c638c97bb
commit 4bb4479165
6 changed files with 26 additions and 3 deletions

View file

@ -224,6 +224,14 @@ module RubyVM::MJIT
raise "compiling #{insn.name} returned unexpected status: #{status.inspect}"
end
end
incr_counter(:compiled_block_count)
end
def incr_counter(name)
if C.mjit_opts.stats
C.rb_mjit_counters[name][0] += 1
end
end
end
end