Sha256: 79ced8433e407bb66109b4083ab6b8fc4fe1e9ffb113dcacc744d204501d85f4
Contents?: true
Size: 664 Bytes
Versions: 6
Compression:
Stored size: 664 Bytes
Contents
$: << File.expand_path(Dir.pwd + "/lib") $:.reverse! require 'rubygems' require 'rye' begin require 'perftools' rescue LoadError => ex puts ex.message puts "$> gem install perftools.rb" exit 1 end data_file = Dir.pwd + "/profile.data" pdf_file = Dir.pwd + "/profile.pdf" text_file = Dir.pwd + "/profile.txt" PerfTools::CpuProfiler.start(data_file) do lo0 = Rye::Hop.new "localhost" # set some real host names lo1 = Rye::Box.new "localhost", :via => lo0 # set some real host names puts lo1.uptime end system("pprof.rb --pdf #{data_file} > #{pdf_file}") system("pprof.rb --text #{data_file} > #{text_file}")
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
rye-0.9.13 | tst/test_hop.rb |
rye-0.9.12 | tst/test_hop.rb |
rye-0.9.11 | tst/test_hop.rb |
rye-0.9.10 | tst/test_hop.rb |
rye-0.9.9 | tst/test_hop.rb |
rye-0.9.8 | tst/test_hop.rb |