On Tue, 27 Dec 2011 23:36:53 -0800, Domas Mituzas midom.lists@gmail.com wrote:
We could try to simplify those kind of common cases.
Yet there are cases that are not so common - "start profiler for this page", "for this ip", "for this wiki", "for this query string", etc. Where would that belong?
Domas
Good point. Rather than simply simplifying that kind of case we could add to the $wgProfiler array a callback functionality that can return a boolean on whether to start the profiler.