You are here: Foswiki>Tasks Web>Item11534 (21 Dec 2014, GeorgeClark)Edit Attach

Item11534: Provide timing report for performance tuning

pencil
Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: Performance
Branches:
Reported By: RichMorin
Waiting For:
Last Change By: GeorgeClark
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
 

ItemTemplate edit

Summary Provide timing report for performance tuning
ReportedBy RichMorin
Codebase
SVN Range
AppliesTo Engine
Component Performance
Priority Enhancement
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 21 Dec 2014, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy