Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
RubyVM::YJIT.enable
(?stats: false | true | :quiet) -> void
enable(stats: false, log: false)
yjit.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/yjit.rb, line 47
def self.enable(stats: false, log: false)
return false if enabled?
at_exit { print_and_dump_stats } if stats
call_yjit_hooks
Primitive.rb_yjit_enable(stats, stats != :quiet, log, log != :quiet)
end
Enable YJIT compilation. stats option decides whether to enable YJIT stats or not. compilation_log decides whether to enable YJIT compilation logging or not.
-
stats:-
false: Don’t enable stats. -
true: Enable stats. Print stats at exit. -
:quiet: Enable stats. Do not print stats at exit.
-
-
log:-
false: Don’t enable the log. -
true: Enable the log. Print log at exit. -
:quiet: Enable the log. Do not print log at exit.
-