Sha256: 21e0458c7c5d1842ce88ef0604d0ca66cfa1da817365bca7348e639867a31a0d
Contents?: true
Size: 668 Bytes
Versions: 11
Compression:
Stored size: 668 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 require File.expand_path('../test_helper', __FILE__) class MeasuremeGCRunsTest < Test::Unit::TestCase def test_gc_runs_mode RubyProf::measure_mode = RubyProf::GC_RUNS assert_equal(RubyProf::GC_RUNS, RubyProf::measure_mode) end def test_gc_runs_enabled_defined assert(defined?(RubyProf::GC_RUNS_ENABLED)) end if RubyProf::GC_RUNS_ENABLED def test_gc_runs t = RubyProf.measure_gc_runs assert_kind_of Integer, t GC.start u = RubyProf.measure_gc_runs assert u > t, [t, u].inspect RubyProf::measure_mode = RubyProf::GC_RUNS memory_test_helper end end end
Version data entries
11 entries across 11 versions & 1 rubygems