diff --git a/yjit.rb b/yjit.rb index 8eb7ef677cf50d..529d8159941595 100644 --- a/yjit.rb +++ b/yjit.rb @@ -36,15 +36,14 @@ def self.reset_stats! # 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. + # * `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. def self.enable(stats: false, log: false) return false if enabled? at_exit { print_and_dump_stats } if stats