ILIAS
Release_5_0_x_branch Revision 61816
|
performance measurement class More...
Public Member Functions | |
ilBenchmark () | |
constructor | |
microtimeDiff ($t1, $t2) | |
clearData () | |
delete all measurement data | |
start ($a_module, $a_bench) | |
start measurement | |
stop ($a_module, $a_bench) | |
stop measurement | |
save () | |
save all measurements | |
getEvaluation ($a_module) | |
get performance evaluation data | |
getCurrentRecordNumber () | |
get current number of benchmark records | |
getMaximumRecords () | |
get maximum number of benchmark records | |
setMaximumRecords ($a_max) | |
set maximum number of benchmark records | |
isEnabled () | |
check wether benchmarking is enabled or not | |
enable ($a_enable) | |
enable benchmarking | |
getMeasuredModules () | |
get all current measured modules | |
getMeasuredTime ($a_module, $a_bench) | |
Get measurement. | |
isDbBenchEnabled () | |
Check wether benchmarking is enabled or not. | |
enableDbBench ($a_enable, $a_user=0) | |
Enable DB benchmarking. | |
startDbBench ($a_sql) | |
start measurement | |
stopDbBench () | |
stop measurement | |
getDbBenchRecords () | |
Get db benchmark records. |
Data Fields | |
$bench = array() |
performance measurement class
Author: Alex Killing Alex. Kill ing@g mx.d e
Definition at line 12 of file class.ilBenchmark.php.
ilBenchmark::clearData | ( | ) |
ilBenchmark::enable | ( | $a_enable | ) |
enable benchmarking
Definition at line 222 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 306 of file class.ilBenchmark.php.
Referenced by save().
ilBenchmark::getCurrentRecordNumber | ( | ) |
get current number of benchmark records
Definition at line 169 of file class.ilBenchmark.php.
References $ilDB.
ilBenchmark::getDbBenchRecords | ( | ) |
Get db benchmark records.
@return |
Definition at line 374 of file class.ilBenchmark.php.
References $ilDB.
ilBenchmark::getEvaluation | ( | $a_module | ) |
get performance evaluation data
Definition at line 144 of file class.ilBenchmark.php.
References $ilDB.
ilBenchmark::getMaximumRecords | ( | ) |
get maximum number of benchmark records
Definition at line 184 of file class.ilBenchmark.php.
ilBenchmark::getMeasuredModules | ( | ) |
get all current measured modules
Definition at line 240 of file class.ilBenchmark.php.
References $ilDB.
ilBenchmark::getMeasuredTime | ( | $a_module, | |
$a_bench | |||
) |
Get measurement.
Definition at line 262 of file class.ilBenchmark.php.
ilBenchmark::ilBenchmark | ( | ) |
ilBenchmark::isDbBenchEnabled | ( | ) |
Check wether benchmarking is enabled or not.
Definition at line 281 of file class.ilBenchmark.php.
References $ilSetting.
Referenced by save(), startDbBench(), and stopDbBench().
ilBenchmark::isEnabled | ( | ) |
check wether benchmarking is enabled or not
Definition at line 206 of file class.ilBenchmark.php.
References $ilSetting.
Referenced by start(), and stop().
ilBenchmark::microtimeDiff | ( | $t1, | |
$t2 | |||
) |
Definition at line 27 of file class.ilBenchmark.php.
Referenced by save(), and stop().
ilBenchmark::save | ( | ) |
save all measurements
Definition at line 86 of file class.ilBenchmark.php.
References $_GET, $_POST, $GLOBALS, $ilDB, $ilIliasIniFile, $ilUser, enableDbBench(), isDbBenchEnabled(), microtimeDiff(), ilUtil\shortenText(), and ilLog\write().
ilBenchmark::setMaximumRecords | ( | $a_max | ) |
set maximum number of benchmark records
Definition at line 195 of file class.ilBenchmark.php.
ilBenchmark::start | ( | $a_module, | |
$a_bench | |||
) |
start measurement
string | $type | measurement type |
Definition at line 57 of file class.ilBenchmark.php.
References isEnabled().
Referenced by startDbBench(), and stopDbBench().
ilBenchmark::startDbBench | ( | $a_sql | ) |
start measurement
string | $type | measurement type |
Definition at line 335 of file class.ilBenchmark.php.
References $ilUser, isDbBenchEnabled(), and start().
ilBenchmark::stop | ( | $a_module, | |
$a_bench | |||
) |
stop measurement
int | $mid | measurement id |
Definition at line 72 of file class.ilBenchmark.php.
References isEnabled(), and microtimeDiff().
ilBenchmark::stopDbBench | ( | ) |
stop measurement
int | $mid | measurement id |
Definition at line 354 of file class.ilBenchmark.php.
References $ilUser, isDbBenchEnabled(), and start().
ilBenchmark::$bench = array() |
Definition at line 14 of file class.ilBenchmark.php.