Sha256: 17457f13c6945827af8ad8afae32d1082712bb7e429749df910e6f7880a1bcd1
Contents?: true
Size: 522 Bytes
Versions: 2
Compression:
Stored size: 522 Bytes
Contents
require 'spec/helper' spec_require 'ruby-prof' Ramaze.contrib :profiling class MainController < Ramaze::Controller def index 100.times {"h" + "e" + "l" + "l" + "o"} end end output = StringIO.new Ramaze::Inform.loggers << Ramaze::Informer.new(output) describe 'Profiling' do behaves_like "http" ramaze it "should profile" do get('/') output.string.should =~ /Thread ID:\s\d+/ output.string.should =~ /Total:/ output.string.should =~ /self\s+total\s+self\s+wait\s+child\s+call/ end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.9 | spec/contrib/profiling.rb |
ramaze-0.3.9.1 | spec/contrib/profiling.rb |