Module: Kuroko2::MemorySampler
- Extended by:
- MemorySampler
- Included in:
- MemorySampler
- Defined in:
- lib/autoload/kuroko2/memory_sampler.rb
Instance Method Summary collapse
-
#get_by_pgid(pgid) ⇒ Integer
Sum of memory consumptions of given process group.
Instance Method Details
#get_by_pgid(pgid) ⇒ Integer
Returns sum of memory consumptions of given process group.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/autoload/kuroko2/memory_sampler.rb', line 8 def get_by_pgid(pgid) case platform when /linux/ get_by_pgid_linux(pgid) when /darwin/ get_by_pgid_osx(pgid) else raise "Unknown platform: #{platform}" end rescue SystemCallError nil end |