total_compile_time_ns -> IntegerRuby 4.1 から[permalink][rdoc][edit]-
YJIT がコンパイルに使った実時間の合計をナノ秒単位で返します。値は単調に増加します。YJIT が有効でなければ 0 を返します。
例RubyVM::YJIT.enable 2000.times { |i| i.to_s } p RubyVM::YJIT.total_compile_time_ns > 0 # => true[SEE_ALSO] RubyVM::YJIT.max_compile_time_ns, RubyVM::YJIT.max_compile_time_ns=, RubyVM::YJIT.runtime_stats