Sha256: ab73e629600c17dc8597cb56703567127ba4c4fb83c740144adc377e89dacdb6

Contents?: true

Size: 418 Bytes

Versions: 10

Compression:

Stored size: 418 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
10000.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

10 entries across 10 versions & 1 rubygems

Version Path
hedgelog-0.1.9 bin/profile
hedgelog-0.1.8 bin/profile
hedgelog-0.1.7 bin/profile
hedgelog-0.1.6 bin/profile
hedgelog-0.1.5 bin/profile
hedgelog-0.1.4 bin/profile
hedgelog-0.1.3 bin/profile
hedgelog-0.1.2 bin/profile
hedgelog-0.1.1 bin/profile
hedgelog-0.1.0 bin/profile