Sha256: 3dc0dd32fb6981360943cd0180301369ca624e041b20d4d92f36dfebd687d356

Contents?: true

Size: 256 Bytes

Versions: 9

Compression:

Stored size: 256 Bytes

Contents

#!/usr/bin/env ruby

require 'test/unit'
require 'ruby-prof'


def start
  RubyProf.start
end

def wait_around
  sleep(2)
end

def stop
  RubyProf.stop
end

start
wait_around
result = stop

printer = RubyProf::FlatPrinter.new(result)
printer.print(STDOUT)

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
jeremy-ruby-prof-0.6.1 test/start_test.rb
ruby-prof-0.5.2-mswin32 test/start_test.rb
ruby-prof-0.5.1-mswin32 test/start_test.rb
ruby-prof-0.5.0-mswin32 test/start_test.rb
ruby-prof-0.6.0-x86-mswin32-60 test/start_test.rb
ruby-prof-0.5.1 test/start_test.rb
ruby-prof-0.6.0 test/start_test.rb
ruby-prof-0.5.2 test/start_test.rb
ruby-prof-0.5.0 test/start_test.rb