mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-15273 basic read/write perf counter in moodle_database
This commit is contained in:
parent
45d4986761
commit
ab130a0b5f
9 changed files with 90 additions and 27 deletions
|
@ -69,8 +69,7 @@ function init_performance_info() {
|
|||
|
||||
global $PERF, $CFG, $USER;
|
||||
|
||||
$PERF = new Object;
|
||||
$PERF->dbqueries = 0;
|
||||
$PERF = new object();
|
||||
$PERF->logwrites = 0;
|
||||
if (function_exists('microtime')) {
|
||||
$PERF->starttime = microtime();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue