Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: Performance
Branches:
I'd like to see a URL option (eg, "
?timing")
which would collect detailed timing information and generate a report
showing the amount of time spent in each plugin, template, etc.
Basically, the wiki engine would record the time when each activity begins.
After the page HTML is complete, the engine would record the final time,
then generate a report for inclusion into the generated page, eg:
Seconds Activity
------- --------
2.345 TOTAL
0.345 | ThisPlugin
0.234 | ThatPlugin
... | ...
1.234 | FooTemplate
1.010 | | FooBarTemplate
0.123 | | FooBazTemplate
... | ...
This would be far more convenient (and less invasive) than alternative approches
(eg, disabling templates, turning off plugins, adding profiling modules).
It would also allow anyone (including users) to "tune" their pages.
--
RichMorin - 18 Feb 2012
There are some things that could be pulled together to give us some of this
- MongoDBPlugin pulls together some timing info which it then aggregates and outputs in the request header
- Monitor.pm can do the gathering and some reporting
- and https://metacpan.org/module/Aspect might be an approach to clean up the Monitor.pm code.
I'd love to see this as a plugin really - but i'm not sure what level of info you miss out on, as the plugin code doesn't get loaded until a little later.
Raf would point out that you could do
something in the .cfg file
--
SvenDowideit - 18 Feb 2012