Skip to content
Permalink
Browse files

stackprof

  • Loading branch information
sorah committed Oct 31, 2015
1 parent b98a9f6 commit 61b49c709e72c2205e0bce2ac939f43de4ef1a79
Showing with 14 additions and 0 deletions.
  1. +14 −0 5f/webapp/ruby/config.ru
@@ -1,3 +1,17 @@
require_relative './app.rb'

unless ENV['ISUCON5_DISABLE_LOGS'] == '1'
require 'stackprof'
require 'pathname'
Pathname.new('/tmp/stackprof').mkpath

use StackProf::Middleware, enabled: true,
mode: :cpu,
interval: 1000,
save_every: 5,
path: '/tmp/stackprof'
end



run Isucon5f::WebApp

0 comments on commit 61b49c7

Please sign in to comment.
You can’t perform that action at this time.