Tag: Ruby/プロファイラ
gem 'rack-mini-profiler', require: false
bundle exec rails g rack_profiler:install
if Rails.env.development? require "rack-mini-profiler" # initialization is skipped so trigger it Rack::MiniProfilerRails.initialize!(Rails.application) end
gem 'stackprof'
StackProf.run(mode: :cpu, out: 'tmp/stackprof.dump') do #... end
$ bundle exec stackprof tmp/stackprof.dump