Sha256: ee1fd5a68ee9e8c471ebbd162bd8bcb26481097f53bf97784e8ffb3fb60b3b75
Contents?: true
Size: 298 Bytes
Versions: 2
Compression:
Stored size: 298 Bytes
Contents
module MPatch 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.2.1 | lib/mpatch/process.rb |
mpatch-2.1.3 | lib/mpatch/process.rb |