Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
RubyVM::YJIT.stats_string
() -> ::String
stats_string
yjit.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/yjit.rb, line 219
def self.stats_string
# Lazily require StringIO to avoid breaking miniruby
require 'stringio'
strio = StringIO.new
_print_stats(out: strio)
strio.string
end
Format and print out counters as a String. This returns a non-empty content only when --yjit-stats is enabled.