ILIAS
Release_4_1_x_branch Revision 61804
|
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 221 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 305 of file class.ilBenchmark.php.
Referenced by save().
ilBenchmark::getCurrentRecordNumber | ( | ) |
get current number of benchmark records
Definition at line 168 of file class.ilBenchmark.php.
References $ilDB.
Referenced by save().
ilBenchmark::getDbBenchRecords | ( | ) |
Get db benchmark records.
@return |
Definition at line 373 of file class.ilBenchmark.php.
References $ilDB.
ilBenchmark::getEvaluation | ( | $a_module | ) |
get performance evaluation data
Definition at line 143 of file class.ilBenchmark.php.
References $ilDB.
ilBenchmark::getMaximumRecords | ( | ) |
get maximum number of benchmark records
Definition at line 183 of file class.ilBenchmark.php.
Referenced by save().
ilBenchmark::getMeasuredModules | ( | ) |
get all current measured modules
Definition at line 239 of file class.ilBenchmark.php.
References $ilDB.
ilBenchmark::getMeasuredTime | ( | $a_module, | |
$a_bench | |||
) |
Get measurement.
Definition at line 261 of file class.ilBenchmark.php.
ilBenchmark::ilBenchmark | ( | ) |
ilBenchmark::isDbBenchEnabled | ( | ) |
Check wether benchmarking is enabled or not.
Definition at line 280 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 205 of file class.ilBenchmark.php.
References $ilSetting.
Referenced by save(), 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 $bench, $ilDB, enableDbBench(), getCurrentRecordNumber(), getMaximumRecords(), isDbBenchEnabled(), isEnabled(), and microtimeDiff().
ilBenchmark::setMaximumRecords | ( | $a_max | ) |
set maximum number of benchmark records
Definition at line 194 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 334 of file class.ilBenchmark.php.
References 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 353 of file class.ilBenchmark.php.
References isDbBenchEnabled(), and start().
ilBenchmark::$bench = array() |
Definition at line 14 of file class.ilBenchmark.php.
Referenced by save().