| ILIAS
    release_5-0 Revision 5.0.0-1144-gc4397b1f870
    | 
performance measurement class More...
 Collaboration diagram for ilBenchmark:
 Collaboration diagram for ilBenchmark:| Public Member Functions | |
| ilBenchmark () | |
| 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 () | |
| stop measurement  More... | |
| getDbBenchRecords () | |
| Get db benchmark records.  More... | |
| Data Fields | |
| $bench = array() | |
performance measurement class
Author: Alex Killing Alex..nosp@m.Kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Definition at line 12 of file class.ilBenchmark.php.
| ilBenchmark::clearData | ( | ) | 
delete all measurement data
Definition at line 41 of file class.ilBenchmark.php.
References $ilDB.
| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBenchmark::microtimeDiff | ( | $t1, | |
| $t2 | |||
| ) | 
Definition at line 27 of file class.ilBenchmark.php.
Referenced by save(), and stop().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBenchmark::save | ( | ) | 
save all measurements
Definition at line 86 of file class.ilBenchmark.php.
References $_GET, $_POST, $GLOBALS, $ilDB, $ilIliasIniFile, $ilUser, enableDbBench(), isDbBenchEnabled(), microtimeDiff(), and ilUtil\shortenText().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBenchmark::startDbBench | ( | $a_sql | ) | 
start measurement
| string | $type | measurement type | 
Definition at line 335 of file class.ilBenchmark.php.
References $ilUser, isDbBenchEnabled(), and start().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBenchmark::stopDbBench | ( | ) | 
stop measurement
| int | $mid | measurement id | 
Definition at line 354 of file class.ilBenchmark.php.
References $ilUser, isDbBenchEnabled(), and start().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBenchmark::$bench = array() | 
Definition at line 14 of file class.ilBenchmark.php.