mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
YJIT: fix bug in top cfunc logging in --yjit-stats
(#9056)
YJIT: correctly handle case where there are no cfunc calls Fix bug in top cfunc logging in `--yjit-stats`
This commit is contained in:
parent
a9c07cbd21
commit
ea3e17e430
2 changed files with 5 additions and 4 deletions
4
yjit.rb
4
yjit.rb
|
@ -375,7 +375,9 @@ module RubyVM::YJIT
|
|||
|
||||
def print_sorted_cfunc_calls(stats, out:, how_many: 20, left_pad: 4) # :nodoc:
|
||||
calls = stats[:cfunc_calls]
|
||||
#puts calls
|
||||
if calls.empty?
|
||||
return
|
||||
end
|
||||
|
||||
# Total number of cfunc calls
|
||||
num_send_cfunc = stats[:num_send_cfunc]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue