Class: TestProf::MemoryProf::RssTracker
- 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
-
#initialize(top_count) ⇒ RssTracker
constructor
A new instance of RssTracker.
- #supported? ⇒ Boolean
- #track ⇒ Object
Methods inherited from Tracker
#example_finished, #example_started, #finish, #group_finished, #group_started, #start
Constructor Details
#initialize(top_count) ⇒ RssTracker
Returns a new instance of RssTracker.
73 74 75 76 77 |
# File 'lib/test_prof/memory_prof/tracker.rb', line 73 def initialize(top_count) @rss_tool = RssTool.tool super end |
Instance Method Details
#supported? ⇒ Boolean
83 84 85 |
# File 'lib/test_prof/memory_prof/tracker.rb', line 83 def supported? !!@rss_tool end |
#track ⇒ Object
79 80 81 |
# File 'lib/test_prof/memory_prof/tracker.rb', line 79 def track @rss_tool.track end |