mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 22:45:03 +02:00
Add compiled_block_count
This commit is contained in:
parent
5c638c97bb
commit
4bb4479165
6 changed files with 26 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue