Sha256: 89bf6e22b6eff45ec0f34c82e27976567930be13db82925232e8f57c3afa9d51
Contents?: true
Size: 288 Bytes
Versions: 11
Compression:
Stored size: 288 Bytes
Contents
# @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
Version data entries
11 entries across 11 versions & 1 rubygems