Sha256: 4e3f4c5bdeab32a1a7f596ade9deb65008da564e39e04087c3bc1e432f5c686f
Contents?: true
Size: 344 Bytes
Versions: 19
Compression:
Stored size: 344 Bytes
Contents
# @param [ String ] file The file path def redirect_output_to_file(file) $stdout.reopen(file, 'w') $stdout.sync = true $stderr.reopen($stdout) # Not sure if this is needed 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
Version data entries
19 entries across 19 versions & 1 rubygems