ILIAS
Release_4_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. |
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 199 of file class.ilBenchmark.php.
ilBenchmark::getCurrentRecordNumber | ( | ) |
get current number of benchmark records
Definition at line 146 of file class.ilBenchmark.php.
Referenced by save().
ilBenchmark::getEvaluation | ( | $a_module | ) |
get performance evaluation data
Definition at line 121 of file class.ilBenchmark.php.
ilBenchmark::getMaximumRecords | ( | ) |
get maximum number of benchmark records
Definition at line 161 of file class.ilBenchmark.php.
Referenced by save().
ilBenchmark::getMeasuredModules | ( | ) |
get all current measured modules
Definition at line 217 of file class.ilBenchmark.php.
ilBenchmark::getMeasuredTime | ( | $a_module, | |
$a_bench | |||
) |
Get measurement.
Definition at line 239 of file class.ilBenchmark.php.
ilBenchmark::ilBenchmark | ( | ) |
ilBenchmark::isEnabled | ( | ) |
check wether benchmarking is enabled or not
Definition at line 183 of file class.ilBenchmark.php.
References $ilSetting.
Referenced by save(), start(), and stop().
ilBenchmark::microtimeDiff | ( | $t1, | |
$t2 | |||
) |
ilBenchmark::save | ( | ) |
save all measurements
Definition at line 85 of file class.ilBenchmark.php.
References $benchmark, $ilDB, $key, $q, getCurrentRecordNumber(), getMaximumRecords(), and isEnabled().
ilBenchmark::setMaximumRecords | ( | $a_max | ) |
set maximum number of benchmark records
Definition at line 172 of file class.ilBenchmark.php.
ilBenchmark::start | ( | $a_module, | |
$a_bench | |||
) |
start measurement
string | $type | measurement type |
Definition at line 56 of file class.ilBenchmark.php.
References isEnabled().
ilBenchmark::stop | ( | $a_module, | |
$a_bench | |||
) |
stop measurement
int | $mid | measurement id |
Definition at line 71 of file class.ilBenchmark.php.
References isEnabled(), and microtimeDiff().