File: profile.rb

package info (click to toggle)
ruby-prof 0.7.3-1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 468 kB
  • sloc: ruby: 2,377; ansic: 1,431; makefile: 31
file content (24 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Settings specified here will take precedence over those in config/environment.rb
# The profile environment should match the same settings
# as the production environment to give a reasonalbe
# approximation of performance.  However, it should
# definitely not use the production databse!


# Cache classes - otherwise your code 
# will run approximately 5 times slower and the
# profiling results will be overwhelmed by Rails
# dependency loading mechanism
config.cache_classes = true

# Don't check template timestamps - once again this
# is to avoid IO times overwhelming profile results
config.action_view.cache_template_loading            = true

# This is debatable, but turn off action controller
# caching to see how long it really takes to run
# queries and render templates
config.action_controller.perform_caching             = false

# Turn off most logging
config.log_level = :info