class MeasureAllocationsTest

  1. test/measure_allocations_test.rb

Public Instance methods

test_allocations ()
[show source]
# File test/measure_allocations_test.rb, line 15
def test_allocations
  t = RubyProf.measure_allocations
  assert_kind_of Integer, t

  u = RubyProf.measure_allocations
  assert u > t, [t, u].inspect
end
test_allocations_enabled_defined ()
[show source]
# File test/measure_allocations_test.rb, line 10
def test_allocations_enabled_defined
  assert(defined?(RubyProf::ALLOCATIONS_ENABLED))
end
test_allocations_mode ()
[show source]
# File test/measure_allocations_test.rb, line 5
def test_allocations_mode
  RubyProf::measure_mode = RubyProf::ALLOCATIONS
  assert_equal(RubyProf::ALLOCATIONS, RubyProf::measure_mode)
end