Sha256: a37ae2695ba9fc267070bb3dc2e01e34e5be10698b80da804b8ad712b7da53bd

Contents?: true

Size: 230 Bytes

Versions: 3

Compression:

Stored size: 230 Bytes

Contents

# encoding: utf-8
#
require 'memory_profiler'
require 'tty-command'

report = MemoryProfiler.report do
  cmd = TTY::Command.new(color: false)
  cmd.run("echo 'hello world!'")
end

report.pretty_print(to_file: 'memory_report.txt')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tty-command-0.8.1 benchmarks/memory.rb
tty-command-0.8.0 benchmarks/memory.rb
tty-command-0.7.0 benchmarks/memory.rb