Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add the memprof tracer middleware

  • Loading branch information...
commit 140f62b7df4d97c926efbe1f446f4fa9124c48a7 1 parent 90e75c9
@tmm1 tmm1 authored qrush committed
View
2  Gemfile
@@ -20,6 +20,8 @@ gem "system_timer", "1.0"
gem "will_paginate", "3.0.pre2"
gem "xml-simple", "1.0.12"
+gem "memprof", "0.3.10.beta.1"
+
# These gems suck and do stupid things when in maintenance mode
group :development, :test, :staging, :production do
gem "delayed_job", "2.1.2"
View
2  Gemfile.lock
@@ -84,6 +84,7 @@ GEM
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
+ memprof (0.3.10.beta.1)
mime-types (1.16)
net-ssh (2.0.24)
newrelic_rpm (2.13.0.beta6)
@@ -158,6 +159,7 @@ DEPENDENCIES
json (= 1.2.0)
launchy (= 0.3.7)
mail (= 2.2.15)
+ memprof (= 0.3.10.beta.1)
newrelic_rpm (= 2.13.0.beta6)
nokogiri (= 1.4.3.1)
paul_revere (= 0.1.5)
View
3  config/application.rb
@@ -20,6 +20,9 @@ class Application < Rails::Application
config.time_zone = "UTC"
config.encoding = "utf-8"
+ require 'memprof/tracer'
+ config.middleware.insert 0, Memprof::Tracer
+
config.middleware.use "Hostess"
config.middleware.insert_after "Hostess", "Redirector" if $rubygems_config[:redirector]
View
BIN  vendor/cache/memprof-0.3.10.beta.1.gem
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.