Permalink
Browse files

stackprof

  • Loading branch information...
sorah committed Oct 22, 2017
1 parent 3ea0ba4 commit 6a6a0b9b31b233f17f507a514c9a2c1de1199b93
Showing with 7 additions and 0 deletions.
  1. +1 −0 isubata/webapp/ruby/Gemfile
  2. +2 −0 isubata/webapp/ruby/Gemfile.lock
  3. +4 −0 isubata/webapp/ruby/config.ru
@@ -8,3 +8,4 @@ gem 'hiredis'
gem 'redis'
gem 'rack-ltsv_logger'
gem 'msgpack'
gem 'stackprof'
@@ -26,6 +26,7 @@ GEM
rack-protection (= 2.0.0)
sinatra (= 2.0.0)
tilt (>= 1.3, < 3)
stackprof (0.2.10)
tilt (2.0.8)
PLATFORMS
@@ -40,6 +41,7 @@ DEPENDENCIES
redis
sinatra
sinatra-contrib
stackprof
BUNDLED WITH
1.15.4
@@ -1,4 +1,8 @@
require './app'
require 'stackprof'
Dir.mkdir('/tmp/stackprof') unless File.exist?('/tmp/stackprof')
use StackProf::Middleware, enabled: true, mode: :cpu, interval: 500, save_every: 20, path: '/tmp/stackprof'
unless ENV['ISUCON7_DISABLE_LOGS'] == '1'
require 'logger'

0 comments on commit 6a6a0b9

Please sign in to comment.