Sha256: 8543f5b77b41f7408a9bc28065b76aadefa4338e4c333dea4e7741979b4695c7

Contents?: true

Size: 681 Bytes

Versions: 10

Compression:

Stored size: 681 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

10 entries across 10 versions & 2 rubygems

Version Path
ruby-prof-0.10.8 rails/profile_test_helper.rb
ruby-prof-0.10.7 rails/profile_test_helper.rb
ruby-prof-0.10.6 rails/profile_test_helper.rb
ruby-prof-0.10.5 rails/profile_test_helper.rb
ruby-prof-0.10.4 rails/profile_test_helper.rb
ruby-prof-0.10.2 rails/profile_test_helper.rb
acunote-ruby-prof-0.9.2 rails/profile_test_helper.rb
ruby-prof-0.9.2 rails/profile_test_helper.rb
ruby-prof-0.9.1 rails/profile_test_helper.rb
ruby-prof-0.9.0 rails/profile_test_helper.rb