Class: TestProf::MemoryProf::AllocTracker

Inherits:
Tracker
  • Object
show all
Defined in:
lib/test_prof/memory_prof/tracker.rb

Instance Attribute Summary

Attributes inherited from Tracker

#examples, #groups, #list, #top_count, #total_memory

Instance Method Summary collapse

Methods inherited from Tracker

#example_finished, #example_started, #finish, #group_finished, #group_started, #initialize, #start

Constructor Details

This class inherits a constructor from TestProf::MemoryProf::Tracker

Instance Method Details

#supported?Boolean

Returns:

  • (Boolean)


63
64
65
# File 'lib/test_prof/memory_prof/tracker.rb', line 63

def supported?
  RUBY_ENGINE != "jruby"
end

#trackObject



59
60
61
# File 'lib/test_prof/memory_prof/tracker.rb', line 59

def track
  GC.stat[:total_allocated_objects]
end