]> git.mjollnir.org Git - moodle.git/commit
moodlelib: moodle_request_shutdown() prints included files
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:46:39 +0000 (07:46 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:46:39 +0000 (07:46 +0000)
commit2a2057736ee07a0f1cf4f7f1092d9a4bb8fb9ecd
tree693764c839d2c28759d77dd774cef12490e01109
parent0146bd4190932cd255c607c2ca5421e368b9201c
moodlelib: moodle_request_shutdown() prints included files

If MDL_PERFINC is defined, we now print to errorlog a listing
of the files included, their size, and then a total size.

The total size isn't the most important metric, though it does give us
a good idea of how much PHP the PHP engine is parsing for us. The main
cost is still in the seeks involved.

Even when using precompilers -- our best-case scenario -- each include
or require forces at least 2 stat()s to compare timestamps in the php
file vs the precompiled file. If the working set fits in buffers we are
fine, but our 60+ stat() calls per page is quite a bit.
lib/moodlelib.php