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.



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

Returns:

  • (Boolean)


83
84
85
# File 'lib/test_prof/memory_prof/tracker.rb', line 83

def supported?
  !!@rss_tool
end

#trackObject



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

def track
  @rss_tool.track
end