Class: TestProf::MemoryProf::AllocTracker
- 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
67 68 69 |
# File 'lib/test_prof/memory_prof/tracker.rb', line 67 def supported? RUBY_ENGINE != "jruby" end |
#track ⇒ Object
63 64 65 |
# File 'lib/test_prof/memory_prof/tracker.rb', line 63 def track GC.stat[:total_allocated_objects] end |