|
ILIAS
trunk Revision v12.0_alpha-1227-g7ff6d300864
|
Class ilBenchmark. More...
Collaboration diagram for ilBenchmark:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| clearData () | |
| delete all measurement data More... | |
| start (string $a_module, string $a_bench) | |
| start measurement More... | |
| stop (string $a_module, string $a_bench) | |
| stop measurement More... | |
| save () | |
| save all measurements More... | |
| isDbBenchEnabled () | |
| Check wether benchmarking is enabled or not. More... | |
| enableDbBenchmarkForUserName (?string $a_user) | |
| disableDbBenchmark () | |
| startDbBench (string $a_sql) | |
| start measurement More... | |
| stopDbBench () | |
| getDbBenchRecords () | |
Data Fields | |
| const | DB_BENCH_USER = "db_bench_user" |
| const | ENABLE_DB_BENCH = "enable_db_bench" |
Private Member Functions | |
| initSettings () | |
| retrieveSetting (string $keyword) | |
| retrieveDB () | |
| isDBavailable () | |
| retrieveUser () | |
| isUserAvailable () | |
| microtimeDiff (string $t1, string $t2) | |
Private Attributes | |
| ilDBInterface | $db = null |
| ilSetting | $settings = null |
| ilObjUser | $user = null |
| Container | $dic |
| string | $start = '' |
| string | $temporary_sql_storage = '' |
| array | $collected_db_benchmarks = [] |
| bool | $stop_db_recording = false |
| bool | $db_bechmark_enabled = null |
| int | $db_bechmark_user_id = null |
Class ilBenchmark.
Definition at line 24 of file class.ilBenchmark.php.
| ilBenchmark::__construct | ( | ) |
Constructor.
Definition at line 46 of file class.ilBenchmark.php.
References $DIC, and initSettings().
Here is the call graph for this function:| ilBenchmark::clearData | ( | ) |
delete all measurement data
Definition at line 115 of file class.ilBenchmark.php.
References $db, isDBavailable(), ilDBInterface\manipulate(), and retrieveDB().
Here is the call graph for this function:| ilBenchmark::disableDbBenchmark | ( | ) |
Definition at line 203 of file class.ilBenchmark.php.
References ILIAS\Repository\settings().
Referenced by enableDbBenchmarkForUserName(), and save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBenchmark::enableDbBenchmarkForUserName | ( | ?string | $a_user | ) |
Definition at line 187 of file class.ilBenchmark.php.
References $user_id, ilObjUser\_lookupId(), disableDbBenchmark(), initSettings(), and ILIAS\Repository\settings().
Here is the call graph for this function:| ilBenchmark::getDbBenchRecords | ( | ) |
Definition at line 244 of file class.ilBenchmark.php.
References Vendor\Package\$b, $db, ilDBInterface\fetchAssoc(), isDBavailable(), ilDBInterface\query(), and retrieveDB().
Here is the call graph for this function:
|
private |
Definition at line 53 of file class.ilBenchmark.php.
References $user_id, ILIAS\Repository\int(), retrieveSetting(), and ILIAS\Repository\settings().
Referenced by __construct(), enableDbBenchmarkForUserName(), and startDbBench().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 86 of file class.ilBenchmark.php.
References retrieveDB().
Referenced by clearData(), getDbBenchRecords(), isDbBenchEnabled(), and save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBenchmark::isDbBenchEnabled | ( | ) |
Check wether benchmarking is enabled or not.
Definition at line 182 of file class.ilBenchmark.php.
References isDBavailable().
Referenced by save(), startDbBench(), and stopDbBench().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 99 of file class.ilBenchmark.php.
References retrieveUser().
Referenced by save(), startDbBench(), and stopDbBench().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 104 of file class.ilBenchmark.php.
Referenced by save().
Here is the caller graph for this function:
|
private |
Definition at line 78 of file class.ilBenchmark.php.
References $db.
Referenced by clearData(), getDbBenchRecords(), isDBavailable(), and save().
Here is the caller graph for this function:
|
private |
Definition at line 71 of file class.ilBenchmark.php.
References ILIAS\Repository\settings().
Referenced by initSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 91 of file class.ilBenchmark.php.
References $user, and ILIAS\Repository\user().
Referenced by isUserAvailable().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBenchmark::save | ( | ) |
save all measurements
Definition at line 146 of file class.ilBenchmark.php.
References Vendor\Package\$b, $db, $id, disableDbBenchmark(), ilDBInterface\insert(), isDBavailable(), isDbBenchEnabled(), isUserAvailable(), ilDBInterface\manipulate(), microtimeDiff(), ilDBInterface\nextId(), retrieveDB(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilBenchmark::start | ( | string | $a_module, |
| string | $a_bench | ||
| ) |
start measurement
Definition at line 130 of file class.ilBenchmark.php.
Referenced by ilObjQuestionPool\exportXMLPageObjects(), and startDbBench().
Here is the caller graph for this function:| ilBenchmark::startDbBench | ( | string | $a_sql | ) |
start measurement
Definition at line 214 of file class.ilBenchmark.php.
References initSettings(), isDbBenchEnabled(), isUserAvailable(), start(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilBenchmark::stop | ( | string | $a_module, |
| string | $a_bench | ||
| ) |
| ilBenchmark::stopDbBench | ( | ) |
Definition at line 228 of file class.ilBenchmark.php.
References $start, $temporary_sql_storage, isDbBenchEnabled(), isUserAvailable(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
private |
Definition at line 36 of file class.ilBenchmark.php.
|
private |
Definition at line 28 of file class.ilBenchmark.php.
Referenced by clearData(), getDbBenchRecords(), retrieveDB(), and save().
|
private |
Definition at line 40 of file class.ilBenchmark.php.
|
private |
Definition at line 41 of file class.ilBenchmark.php.
|
private |
Definition at line 32 of file class.ilBenchmark.php.
|
private |
Definition at line 29 of file class.ilBenchmark.php.
|
private |
Definition at line 34 of file class.ilBenchmark.php.
Referenced by stopDbBench().
|
private |
Definition at line 38 of file class.ilBenchmark.php.
|
private |
Definition at line 35 of file class.ilBenchmark.php.
Referenced by stopDbBench().
|
private |
Definition at line 30 of file class.ilBenchmark.php.
Referenced by retrieveUser().
| const ilBenchmark::DB_BENCH_USER = "db_bench_user" |
Definition at line 26 of file class.ilBenchmark.php.
Referenced by ilObjBenchmarkGUI\settings(), and ilObjBenchmarkGUI\update().
| const ilBenchmark::ENABLE_DB_BENCH = "enable_db_bench" |
Definition at line 27 of file class.ilBenchmark.php.
Referenced by ilObjBenchmarkGUI\settings(), and ilObjBenchmarkGUI\update().