class MeasureGCTimeTest

  1. test/measure_gc_time_test.rb

Public Instance methods

test_gc_time ()
[show source]
# File test/measure_gc_time_test.rb, line 15
def test_gc_time
  t = RubyProf.measure_gc_time
  assert_kind_of Integer, t

  GC.start

  u = RubyProf.measure_gc_time
  assert u > t, [t, u].inspect
  RubyProf::measure_mode = RubyProf::GC_TIME
  memory_test_helper
end
test_gc_time_enabled_defined ()
[show source]
# File test/measure_gc_time_test.rb, line 10
def test_gc_time_enabled_defined
  assert(defined?(RubyProf::GC_TIME_ENABLED))
end
test_gc_time_mode ()
[show source]
# File test/measure_gc_time_test.rb, line 5
def test_gc_time_mode
  RubyProf::measure_mode = RubyProf::GC_TIME
  assert_equal(RubyProf::GC_TIME, RubyProf::measure_mode)
end