Class: Evilution::Reporter::CLI::LineFormatters::PeakMemory

Inherits:
Object
  • Object
show all
Defined in:
lib/evilution/reporter/cli/line_formatters/peak_memory.rb

Instance Method Summary collapse

Instance Method Details

#format(summary) ⇒ Object



6
7
8
9
10
11
# File 'lib/evilution/reporter/cli/line_formatters/peak_memory.rb', line 6

def format(summary)
  peak = summary.peak_memory_mb
  return nil unless peak

  Kernel.format("Peak memory: %<mb>.1f MB", mb: peak)
end