|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
performance measurement class More...
Collaboration diagram for ilBenchmark:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| 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 () | |
| getDbBenchRecords () | |
| Get db benchmark records. More... | |
Data Fields | |
| $bench = array() | |
Protected Attributes | |
| $db_bench | |
| $start | |
| $sql | |
| $db_bench_stop_rec | |
| $db_enabled_user | |
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::__construct | ( | ) |
| ilBenchmark::clearData | ( | ) |
delete all measurement data
Definition at line 63 of file class.ilBenchmark.php.
| ilBenchmark::enable | ( | $a_enable | ) |
enable benchmarking
Definition at line 237 of file class.ilBenchmark.php.
References $DIC, and $ilSetting.
| 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 320 of file class.ilBenchmark.php.
References $DIC, and $ilSetting.
Referenced by save().
Here is the caller graph for this function:| ilBenchmark::getCurrentRecordNumber | ( | ) |
get current number of benchmark records
Definition at line 180 of file class.ilBenchmark.php.
| ilBenchmark::getDbBenchRecords | ( | ) |
Get db benchmark records.
return
Definition at line 400 of file class.ilBenchmark.php.
References Vendor\Package\$b, $DIC, and $ilDB.
| ilBenchmark::getEvaluation | ( | $a_module | ) |
get performance evaluation data
Definition at line 156 of file class.ilBenchmark.php.
References $ilDB.
| ilBenchmark::getMaximumRecords | ( | ) |
get maximum number of benchmark records
Definition at line 196 of file class.ilBenchmark.php.
References $DIC, and $ilSetting.
| ilBenchmark::getMeasuredModules | ( | ) |
get all current measured modules
Definition at line 254 of file class.ilBenchmark.php.
| ilBenchmark::getMeasuredTime | ( | $a_module, | |
| $a_bench | |||
| ) |
Get measurement.
Definition at line 277 of file class.ilBenchmark.php.
| ilBenchmark::isDbBenchEnabled | ( | ) |
Check wether benchmarking is enabled or not.
Definition at line 295 of file class.ilBenchmark.php.
References $DIC, and $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 220 of file class.ilBenchmark.php.
References $DIC, and $ilSetting.
| ilBenchmark::microtimeDiff | ( | $t1, | |
| $t2 | |||
| ) |
Definition at line 49 of file class.ilBenchmark.php.
Referenced by save().
Here is the caller graph for this function:| ilBenchmark::save | ( | ) |
save all measurements
Definition at line 100 of file class.ilBenchmark.php.
References $_GET, $_POST, Vendor\Package\$b, $DIC, $GLOBALS, $ilDB, $ilIliasIniFile, $ilUser, CLIENT_ID, 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 208 of file class.ilBenchmark.php.
References $DIC, and $ilSetting.
| ilBenchmark::start | ( | $a_module, | |
| $a_bench | |||
| ) |
start measurement
| string | $type | measurement type |
Definition at line 81 of file class.ilBenchmark.php.
Referenced by startDbBench(), and stopDbBench().
Here is the caller graph for this function:| ilBenchmark::startDbBench | ( | $a_sql | ) |
start measurement
| string | $a_sql |
Definition at line 347 of file class.ilBenchmark.php.
References $DIC, Vendor\Package\$e, $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 92 of file class.ilBenchmark.php.
| ilBenchmark::stopDbBench | ( | ) |
Definition at line 369 of file class.ilBenchmark.php.
References $DIC, Vendor\Package\$e, $ilUser, isDbBenchEnabled(), and start().
Here is the call graph for this function:| ilBenchmark::$bench = array() |
Definition at line 44 of file class.ilBenchmark.php.
|
protected |
Definition at line 18 of file class.ilBenchmark.php.
|
protected |
Definition at line 30 of file class.ilBenchmark.php.
|
protected |
Definition at line 34 of file class.ilBenchmark.php.
|
protected |
Definition at line 26 of file class.ilBenchmark.php.
|
protected |
Definition at line 22 of file class.ilBenchmark.php.