Sha256: 6039c3c36f7e1266da4c819ad1c59b8e89412f89630c501438cd6e671e70e6ef
Contents?: true
Size: 303 Bytes
Versions: 3
Compression:
Stored size: 303 Bytes
Contents
module MPatch module Process # return a string obj that include the memory usage info def self.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mpatch-2.1.0 | lib/mpatch/process.rb |
mpatch-2.0.1 | lib/mpatch/process.rb |
mpatch-2.0.0 | lib/mpatch/process.rb |