|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
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 | |
| initSettins () | |
| retrieveSetting (string $keyword) | |
| retrieveDB () | |
| isDBavailable () | |
| retrieveUser () | |
| isUserAvailable () | |
| microtimeDiff (string $t1, string $t2) | |
| getCurrentRecordNumber () | |
| get current number of benchmark records More... | |
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 |
| int | $bench_max_records |
| 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 48 of file class.ilBenchmark.php.
References $DIC, and initSettins().
Here is the call graph for this function:| ilBenchmark::clearData | ( | ) |
delete all measurement data
Definition at line 114 of file class.ilBenchmark.php.
References isDBavailable(), ilDBInterface\manipulate(), and retrieveDB().
Referenced by ilObjSystemFolderGUI\clearBenchObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBenchmark::disableDbBenchmark | ( | ) |
Definition at line 218 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 202 of file class.ilBenchmark.php.
References ilObjUser\_lookupId(), disableDbBenchmark(), initSettins(), and ILIAS\Repository\settings().
Here is the call graph for this function:
|
private |
get current number of benchmark records
Definition at line 175 of file class.ilBenchmark.php.
References ilDBInterface\fetchAssoc(), isDBavailable(), ilDBInterface\query(), and retrieveDB().
Here is the call graph for this function:| ilBenchmark::getDbBenchRecords | ( | ) |
Definition at line 259 of file class.ilBenchmark.php.
References Vendor\Package\$b, ilDBInterface\fetchAssoc(), isDBavailable(), ilDBInterface\query(), and retrieveDB().
Referenced by ilObjSystemFolderGUI\benchmarkSubTabs(), and ilObjSystemFolderGUI\showDbBenchResults().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 56 of file class.ilBenchmark.php.
References 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 85 of file class.ilBenchmark.php.
References retrieveDB().
Referenced by clearData(), getCurrentRecordNumber(), 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 197 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 98 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 103 of file class.ilBenchmark.php.
Referenced by save().
Here is the caller graph for this function:
|
private |
Definition at line 77 of file class.ilBenchmark.php.
References $db.
Referenced by clearData(), getCurrentRecordNumber(), getDbBenchRecords(), isDBavailable(), and save().
Here is the caller graph for this function:
|
private |
Definition at line 70 of file class.ilBenchmark.php.
References ILIAS\Repository\settings().
Referenced by initSettins().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 90 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 145 of file class.ilBenchmark.php.
References Vendor\Package\$b, $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 129 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 229 of file class.ilBenchmark.php.
References initSettins(), isDbBenchEnabled(), isUserAvailable(), start(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilBenchmark::stop | ( | string | $a_module, |
| string | $a_bench | ||
| ) |
stop measurement
Definition at line 138 of file class.ilBenchmark.php.
| ilBenchmark::stopDbBench | ( | ) |
Definition at line 243 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 40 of file class.ilBenchmark.php.
|
private |
Definition at line 36 of file class.ilBenchmark.php.
|
private |
Definition at line 28 of file class.ilBenchmark.php.
Referenced by retrieveDB().
|
private |
Definition at line 42 of file class.ilBenchmark.php.
|
private |
Definition at line 43 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 ilObjSystemFolderGUI\benchmarkObject(), and ilObjSystemFolderGUI\saveBenchSettingsObject().
| const ilBenchmark::ENABLE_DB_BENCH = "enable_db_bench" |
Definition at line 27 of file class.ilBenchmark.php.
Referenced by ilObjSystemFolderGUI\benchmarkObject(), and ilObjSystemFolderGUI\saveBenchSettingsObject().