]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Instrument the TPAC: add timelog() method to EGCatLoader
authorDan Scott <dscott@laurentian.ca>
Wed, 25 Apr 2012 19:20:46 +0000 (15:20 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 25 Apr 2012 20:43:06 +0000 (16:43 -0400)
commit18524ec34d43f4da378cea7b5eb9ea83ccd963c3
tree91d71174b762d0154731c9fb7b19cabfbf3616e1
parent4d517fbbdf32fe205d47f7c7f9c0ff6954833773
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