Sha256: 1db0bc154b311dc8d335bb328b18e036752d3a5ed7355ac0773709fac4e54ce2
Contents?: true
Size: 306 Bytes
Versions: 2
Compression:
Stored size: 306 Bytes
Contents
module MPatch::Extend module Process # return a string obj that include the memory usage info def memory_usage begin return `pmap #{self.pid}`.lines.to_a( ).last.chomp.scan(/ *\w* *(\w+)/)[0][0] rescue ::NoMethodError return nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mpatch-2.3.0 | lib/mpatch/process.rb |
mpatch-2.2.4 | lib/mpatch/process.rb |