|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
performance measurement class More...
Collaboration diagram for ilBenchmark:Public Member Functions | |
| microtimeDiff ($t1, $t2) | |
| clearData () | |
| delete all measurement data More... | |
| start ($a_module, $a_bench) | |
| start measurement More... | |
| stop ($a_module, $a_bench) | |
| stop measurement More... | |
| save () | |
| save all measurements More... | |
| getEvaluation ($a_module) | |
| get performance evaluation data More... | |
| getCurrentRecordNumber () | |
| get current number of benchmark records More... | |
| getMaximumRecords () | |
| get maximum number of benchmark records More... | |
| setMaximumRecords ($a_max) | |
| set maximum number of benchmark records More... | |
| isEnabled () | |
| check wether benchmarking is enabled or not More... | |
| enable ($a_enable) | |
| enable benchmarking More... | |
| getMeasuredModules () | |
| get all current measured modules More... | |
| getMeasuredTime ($a_module, $a_bench) | |
| Get measurement. More... | |
| isDbBenchEnabled () | |
| Check wether benchmarking is enabled or not. More... | |
| enableDbBench ($a_enable, $a_user=0) | |
| Enable DB benchmarking. More... | |
| startDbBench ($a_sql) | |
| start measurement More... | |
| stopDbBench () | |
| stop measurement More... | |
| getDbBenchRecords () | |
| Get db benchmark records. More... | |
Data Fields | |
| $bench = array() | |
performance measurement class
Author: Alex Killing Alex..nosp@m.Kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Definition at line 12 of file class.ilBenchmark.php.
| ilBenchmark::clearData | ( | ) |
delete all measurement data
Definition at line 33 of file class.ilBenchmark.php.
References $ilDB.
| ilBenchmark::enable | ( | $a_enable | ) |
enable benchmarking
Definition at line 216 of file class.ilBenchmark.php.
| ilBenchmark::enableDbBench | ( | $a_enable, | |
$a_user = 0 |
|||
| ) |
Enable DB benchmarking.
| boolean | enable db benchmarking |
| string | user account name that should be benchmarked |
Definition at line 300 of file class.ilBenchmark.php.
Referenced by save().
Here is the caller graph for this function:| ilBenchmark::getCurrentRecordNumber | ( | ) |
get current number of benchmark records
Definition at line 163 of file class.ilBenchmark.php.
References $ilDB.
| ilBenchmark::getDbBenchRecords | ( | ) |
Get db benchmark records.
return
Definition at line 368 of file class.ilBenchmark.php.
References $ilDB.
| ilBenchmark::getEvaluation | ( | $a_module | ) |
get performance evaluation data
Definition at line 138 of file class.ilBenchmark.php.
References $ilDB.
| ilBenchmark::getMaximumRecords | ( | ) |
get maximum number of benchmark records
Definition at line 178 of file class.ilBenchmark.php.
| ilBenchmark::getMeasuredModules | ( | ) |
get all current measured modules
Definition at line 234 of file class.ilBenchmark.php.
References $ilDB.
| ilBenchmark::getMeasuredTime | ( | $a_module, | |
| $a_bench | |||
| ) |
Get measurement.
Definition at line 256 of file class.ilBenchmark.php.
| ilBenchmark::isDbBenchEnabled | ( | ) |
Check wether benchmarking is enabled or not.
Definition at line 275 of file class.ilBenchmark.php.
References $ilSetting.
Referenced by save(), startDbBench(), and stopDbBench().
Here is the caller graph for this function:| ilBenchmark::isEnabled | ( | ) |
check wether benchmarking is enabled or not
Definition at line 200 of file class.ilBenchmark.php.
References $ilSetting.
Referenced by start(), and stop().
Here is the caller graph for this function:| ilBenchmark::microtimeDiff | ( | $t1, | |
| $t2 | |||
| ) |
Definition at line 19 of file class.ilBenchmark.php.
Referenced by save(), and stop().
Here is the caller graph for this function:| ilBenchmark::save | ( | ) |
save all measurements
Definition at line 78 of file class.ilBenchmark.php.
References $_GET, $_POST, $GLOBALS, $ilDB, $ilIliasIniFile, $ilUser, defined, enableDbBench(), isDbBenchEnabled(), microtimeDiff(), and ilUtil\shortenText().
Here is the call graph for this function:| ilBenchmark::setMaximumRecords | ( | $a_max | ) |
set maximum number of benchmark records
Definition at line 189 of file class.ilBenchmark.php.
| ilBenchmark::start | ( | $a_module, | |
| $a_bench | |||
| ) |
start measurement
| string | $type | measurement type |
Definition at line 49 of file class.ilBenchmark.php.
References isEnabled().
Referenced by startDbBench(), and stopDbBench().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBenchmark::startDbBench | ( | $a_sql | ) |
start measurement
| string | $type | measurement type |
Definition at line 329 of file class.ilBenchmark.php.
References $ilUser, isDbBenchEnabled(), and start().
Here is the call graph for this function:| ilBenchmark::stop | ( | $a_module, | |
| $a_bench | |||
| ) |
stop measurement
| int | $mid | measurement id |
Definition at line 64 of file class.ilBenchmark.php.
References isEnabled(), and microtimeDiff().
Here is the call graph for this function:| ilBenchmark::stopDbBench | ( | ) |
stop measurement
| int | $mid | measurement id |
Definition at line 348 of file class.ilBenchmark.php.
References $ilUser, isDbBenchEnabled(), and start().
Here is the call graph for this function:| ilBenchmark::$bench = array() |
Definition at line 14 of file class.ilBenchmark.php.