class Koine::Profiler::Reporters::Cli
Public Class Methods
new(output = STDOUT, table = Terminal::Table.new)
click to toggle source
# File lib/koine/profiler/reporters/cli.rb, line 7 def initialize(output = STDOUT, table = Terminal::Table.new) @output = output @table = table end
Public Instance Methods
report(entries)
click to toggle source
# File lib/koine/profiler/reporters/cli.rb, line 12 def report(entries) @table << ['Entry', 'Elapsed Time', 'Memory', '# hits'] entries.each do |entry| @table << [entry.name, entry.elapsed_time, entry.memory_used, entry.hits] end @output << @table end