nesquena/query_reviewer — Issue #12: Dynamically load/unload per request
Author: jmoses
Created: 2012-02-14 17:51:17+00:00
State: open

It would be great if you could enable query_reviewer for a single request. Mostly so you can profile a particular page once, in production mode, but not have the overhead of leaving it on for all requests. It almost looks like you could do that by overriding how enabled? works, but it loads a bunch of modules, and I don't think there's an easy way to unload them after the request is completed.

If I can get good direction on this, it'd probably be worth my time to fork and pull.