class method
RubyVM::YJIT.runtime_stats
(?context: bool) -> ::Hash[untyped, untyped]?
runtime_stats(key = nil)
yjit.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/yjit.rb, line 188
def self.runtime_stats(key = nil)
raise TypeError, "non-symbol given" unless key.nil? || Symbol === key
Primitive.rb_yjit_get_stats(key)
end
Return a hash for statistics generated for the --yjit-stats command line option. Return nil when option is not passed or unavailable. If a symbol argument is provided, return only the value for the named stat. If any other type is provided, raises TypeError.