Class: TestProf::MemoryProf::Tracker::RssTool::PS

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

Instance Method Summary collapse

Instance Method Details

#trackObject



42
43
44
# File 'lib/test_prof/memory_prof/tracker/rss_tool.rb', line 42

def track
  `ps -o rss -p #{$$}`.strip.split.last.to_i * 1024
end