Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
RubyVM::YJIT.stats_enabled?
() -> bool
stats_enabled?
yjit.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/yjit.rb, line 17
def self.stats_enabled?
Primitive.rb_yjit_stats_enabled_p
end
Check if --yjit-stats is used.
See also
.runtime_stats
.stats_string
.reset_stats!
.total_compile_time_ns
also in
4.0 · 3.4 · 3.3 · 3.2