MDL-43758 performance: New metric, time spent by the database
authorDavid Monllao <davidm@moodle.com>
Mon, 20 Jan 2014 05:34:26 +0000 (13:34 +0800)
committerDavid Monllao <davidm@moodle.com>
Fri, 24 Jan 2014 08:07:01 +0000 (16:07 +0800)
commita922209e84aff78de26850ea209170a431a6ce2e
tree85cbc883c3a6fd9b574dd8974c357e485e6cf99b
parent9788e26805cdb59d77e28faaa006644f157a7e05
MDL-43758 performance: New metric, time spent by the database

This patch adds a new performance metric to the performance
info shown by MDL_PERF* vars, the time spent by the database,
it was one of the wonderful @poltawski ideas. To be more specific
the value displayed is the sum of the time elapsed between query_start()
and query_end().
lib/dml/moodle_database.php
lib/moodlelib.php