プロジェクト

全般

プロフィール

バグ #1606 » 0001-Ruby-YJIT-YJIT.enable-refs-1606.patch

Izumi Tsutsui, 2026-04-07 22:29

差分を表示:

mikutter.rb
# _profile_ がtrueなら、プロファイリングした結果を一時ディレクトリに保存する
def boot!(profile)
begin
RubyVM::YJIT.enable if RUBY_VERSION.split('.') >= %w[3 3]
RubyVM::YJIT.enable if RUBY_VERSION.split('.') >= %w[3 3] && defined?(RubyVM::YJIT)
if profile
require 'ruby-prof'
begin
    (1-1/1)