Skip to content
class method

RubyVM::YJIT.enable

(?stats: false | true | :quiet) -> void
enable(stats: false, log: false, mem_size: nil, call_threshold: nil)

Enable YJIT compilation. stats option decides whether to enable YJIT stats or not. log decides whether to enable YJIT compilation logging or not. Optional mem_size and call_threshold can be provided to override default configuration.

  • 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.