Sha256: be070279073e83cdeed3fa9db6569f0f3313bc8e3dc60ae72962da5134f55e7a
Contents?: true
Size: 665 Bytes
Versions: 11
Compression:
Stored size: 665 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 require File.expand_path('../test_helper', __FILE__) class MeasureGCTimeTest < Test::Unit::TestCase def test_gc_time_mode RubyProf::measure_mode = RubyProf::GC_TIME assert_equal(RubyProf::GC_TIME, RubyProf::measure_mode) end def test_gc_time_enabled_defined assert(defined?(RubyProf::GC_TIME_ENABLED)) end if RubyProf::GC_TIME_ENABLED 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 end end
Version data entries
11 entries across 11 versions & 1 rubygems