Class: TestProf::MemoryProf::RssTracker

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, #start

Constructor Details

#initialize(top_count) ⇒ RssTracker

Returns a new instance of RssTracker.



69
70
71
72
73
# File 'lib/test_prof/memory_prof/tracker.rb', line 69

def initialize(top_count)
  @rss_tool = RssTool.tool

  super
end

Instance Method Details

#supported?Boolean

Returns:

  • (Boolean)


79
80
81
# File 'lib/test_prof/memory_prof/tracker.rb', line 79

def supported?
  !!@rss_tool
end

#trackObject



75
76
77
# File 'lib/test_prof/memory_prof/tracker.rb', line 75

def track
  @rss_tool.track
end