lib/cms_scanner/helper.rb in cms_scanner-0.6.0 vs lib/cms_scanner/helper.rb in cms_scanner-0.6.1
- old
+ new
@@ -3,10 +3,5 @@
# @param [ String ] file The file path
def redirect_output_to_file(file)
$stdout.reopen(file, 'w')
$stdout.sync = true
end
-
-# @return [ Integer ] The memory of the current process in Bytes
-def memory_usage
- `ps -o rss= -p #{Process.pid}`.to_i * 1024 # ps returns the value in KB
-end