Sha256: 6f3c31d087e50af1c38cc9f417732a84ac53d60dd9114c76c19dc8654fb13a8d

Contents?: true

Size: 682 Bytes

Versions: 23

Compression:

Stored size: 682 Bytes

Contents

# Load profile environment
env = ENV["RAILS_ENV"] = "profile"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")

# Load Rails testing infrastructure
require 'test_help'

# Now we can load test_helper since we've already loaded the
# profile RAILS environment.
require File.expand_path(File.join(RAILS_ROOT, 'test', 'test_helper'))

# Reset the current environment back to profile
# since test_helper reset it to test
ENV["RAILS_ENV"] = env

# Now load ruby-prof and away we go
require 'ruby-prof'

# Setup output directory to Rails tmp directory
RubyProf::Test::PROFILE_OPTIONS[:output_dir] = 
    File.expand_path(File.join(RAILS_ROOT, 'tmp', 'profile'))

Version data entries

23 entries across 23 versions & 5 rubygems

Version Path
adamh-ruby-prof-0.7.3 rails/profile_test_helper.rb
skaes-ruby-prof-0.7.3 rails/profile_test_helper.rb
ruby-prof-danielhoey-0.8.1 rails/profile_test_helper.rb
ruby-prof-0.8.2 rails/profile_test_helper.rb
ruby-prof-0.8.1-x86-mingw32 rails/profile_test_helper.rb
ruby-prof-0.8.1-x86-mswin32 rails/profile_test_helper.rb
ruby-prof-0.8.1 rails/profile_test_helper.rb
ruby-prof-0.7.10 rails/profile_test_helper.rb
ruby-prof-0.7.9 rails/profile_test_helper.rb
ruby-prof-0.7.8 rails/profile_test_helper.rb
ruby-prof-0.7.7 rails/profile_test_helper.rb
ruby-prof-0.7.6 rails/profile_test_helper.rb
ruby-prof-0.7.5 rails/profile_test_helper.rb
ruby-prof-0.7.4 rails/profile_test_helper.rb
rdp-ruby-prof-0.7.4 rails/profile_test_helper.rb
ruby-prof-0.7.0-x86-mswin32-60 rails/profile_test_helper.rb
ruby-prof-0.7.1-x86-mswin32-60 rails/profile_test_helper.rb
ruby-prof-0.7.0 rails/profile_test_helper.rb
ruby-prof-0.7.3 rails/profile_test_helper.rb
ruby-prof-0.7.2 rails/profile_test_helper.rb