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>
Wed, 25 Apr 2012 20:16:04 +0000 (16:16 -0400)
commit068a03c330a16acac521fed879ce207435f627e0
tree0107707af400ec938e410f10327a12da403e24cc
parent70cabed6c13a6fb5479e13ac88bd28cabbfcecde
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.

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