ILIAS
Release_3_10_x_branch Revision 61812
|
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 33 of file class.ilBenchmark.php.
ilBenchmark::clearData | ( | ) |
delete all measurement data
Definition at line 61 of file class.ilBenchmark.php.
ilBenchmark::enable | ( | $a_enable | ) |
enable benchmarking
Definition at line 203 of file class.ilBenchmark.php.
ilBenchmark::getCurrentRecordNumber | ( | ) |
get current number of benchmark records
Definition at line 155 of file class.ilBenchmark.php.
References DB_FETCHMODE_ASSOC.
Referenced by save().
ilBenchmark::getEvaluation | ( | $a_module | ) |
get performance evaluation data
Definition at line 130 of file class.ilBenchmark.php.
References DB_FETCHMODE_ASSOC.
ilBenchmark::getMaximumRecords | ( | ) |
get maximum number of benchmark records
Definition at line 170 of file class.ilBenchmark.php.
Referenced by save().
ilBenchmark::getMeasuredModules | ( | ) |
get all current measured modules
Definition at line 221 of file class.ilBenchmark.php.
References DB_FETCHMODE_ASSOC.
ilBenchmark::getMeasuredTime | ( | $a_module, | |
$a_bench | |||
) |
Get measurement.
Definition at line 243 of file class.ilBenchmark.php.
ilBenchmark::ilBenchmark | ( | ) |
ilBenchmark::isEnabled | ( | ) |
check wether benchmarking is enabled or not
Definition at line 192 of file class.ilBenchmark.php.
Referenced by save().
ilBenchmark::microtimeDiff | ( | $t1, | |
$t2 | |||
) |
Definition at line 47 of file class.ilBenchmark.php.
Referenced by stop().
ilBenchmark::save | ( | ) |
save all measurements
Definition at line 98 of file class.ilBenchmark.php.
References getCurrentRecordNumber(), getMaximumRecords(), and isEnabled().
ilBenchmark::setMaximumRecords | ( | $a_max | ) |
set maximum number of benchmark records
Definition at line 181 of file class.ilBenchmark.php.
ilBenchmark::start | ( | $a_module, | |
$a_bench | |||
) |
start measurement
string | $type | measurement type |
Definition at line 77 of file class.ilBenchmark.php.
ilBenchmark::stop | ( | $a_module, | |
$a_bench | |||
) |
stop measurement
int | $mid | measurement id |
Definition at line 88 of file class.ilBenchmark.php.
References microtimeDiff().