ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
performance measurement class More...
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. Kill ing@g mx.d e
Definition at line 12 of file class.ilBenchmark.php.
ilBenchmark::__construct | ( | ) |
ilBenchmark::clearData | ( | ) |
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().
ilBenchmark::getCurrentRecordNumber | ( | ) |
ilBenchmark::getDbBenchRecords | ( | ) |
Get db benchmark records.
Definition at line 400 of file class.ilBenchmark.php.
References $DIC, $ilDB, and array.
ilBenchmark::getEvaluation | ( | $a_module | ) |
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.
References $DIC, $ilDB, and array.
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().
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().
ilBenchmark::save | ( | ) |
save all measurements
Definition at line 100 of file class.ilBenchmark.php.
References $_GET, $_POST, $DIC, $GLOBALS, $id, $ilDB, $ilIliasIniFile, $ilUser, array, defined, enableDbBench(), isDbBenchEnabled(), microtimeDiff(), ilUtil\shortenText(), and ilLog\write().
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().
ilBenchmark::startDbBench | ( | $a_sql | ) |
start measurement
string | $a_sql |
Definition at line 347 of file class.ilBenchmark.php.
References $db_bench_stop_rec, $DIC, $ilUser, isDbBenchEnabled(), and start().
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 $db_bench_stop_rec, $DIC, $ilUser, array, isDbBenchEnabled(), and start().
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.
Referenced by startDbBench(), and stopDbBench().
|
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.