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