Sha256: 45e3b83eb2812454891e43283cddfd086f732816460cb3b89976cd3a3ddaccc8

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

#!/usr/bin/env ruby

require 'bundler/setup'
require 'hedgelog'
require 'ruby-prof'
require 'logger'

logger = Hedgelog.new('/dev/null')
logger.level = Logger::INFO

RubyProf.start
10_000.times do
  logger.info 'Foo'
end
result = RubyProf.stop
result.eliminate_methods!([/Integer#times/])

# printer = RubyProf::GraphPrinter.new(result)
printer = RubyProf::FlatPrinterWithLineNumbers.new(result)
printer.print($stdout)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hedgelog-0.2.1.alpha.4 bin/profile
hedgelog-0.2.1.alpha.3 bin/profile
hedgelog-0.2.1.alpha.2 bin/profile