Instrument the TPAC: add timelog() method to EGCatLoader
authorDan Scott <dscott@laurentian.ca>
Wed, 25 Apr 2012 19:20:46 +0000 (15:20 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Sat, 28 Apr 2012 17:50:38 +0000 (13:50 -0400)
commita695983e105767743f1957f49a05f74afec3e514
tree5d87d675f0095302e5c88b9b2849962e3a6abdaf
parent216096a1accf7d8f7946aecbb86a883d5db76415
Instrument the TPAC: add timelog() method to EGCatLoader

Meant for timing how long events take to generate a single TPAC page,
the timelog() method will provide timing in microsecond granularity of
various events required to build the page.

To invoke: $self->timelog("Event description...");

Builds up a context variable named "timing" containing a list of
arrays; each array entry contains a time and the event description.

Disabled by default; to enable, set DEBUG_TIMING = 1 in
OpenILS/WWW/EGCatLoader.pm

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/templates/opac/parts/footer.tt2