Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add times parameter support for Rack::Profiler #49

Open
mperham opened this Issue · 1 comment

2 participants

@mperham

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 can tune the count per page:

/some_long_page?profile=cpu_time&times=10
/quick?profile=cpu_time&times=10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.