Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method · added in Ruby 3.1
GC.total_time
() -> ::Integer
GC.total_time → int
gc.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/gc.rb, line 386
def self.total_time
Primitive.cexpr! %{
ULL2NUM(rb_gc_impl_get_total_time(rb_gc_get_objspace()))
}
end
Returns the measured GC total time in nanoseconds.
Ruby version changes
-
3.1
-
GC.total_timereturns measured time in nano-seconds. [[Feature #10917]]
-