rack/rack-contrib — Issue #49: Add times parameter support for Rack::Profiler
Author: mperham
Created: 2012-02-24 23:34:24+00:00
State: open

Rack::Profiler allows you to set a times parameter globally:

use Rack::Profiler, :times => 100

but this is not granular enough. Some of my pages take 1ms to render, others take 1s. I want to give the times count as part of the URL so I tune the count per page:

/some_long_page?profile=cpu_time×=10
/quick?profile=cpu_time×=10000