for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
require 'terminal-table'
module Koine
class Profiler
module Reporters
class Cli
def initialize(output = STDOUT, table = Terminal::Table.new)
@output = output
@table = table
end
def report(entries)
@table << ['Entry', 'Elapsed Time', '# of calls']
entries.each do |entry|
@table << [entry.name, entry.elapsed_time, entry.entries.size]
@output << @table