MDL-78552 core: tidy up MDL_PERF constants

* all constans usable in ABORT_AFTER_CONFIG should be always defined
* MDL_PERFDB and $PERF->logwrites not used after legacy log removal
* MDL_PERF_TEST should be documented in codebase
* deprecated warnings in shutdowb manager
This commit is contained in:
Petr Skoda
2023-06-25 08:39:09 +02:00
parent 3cd84747cb
commit 3c25ccdcd1
11 changed files with 33 additions and 35 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ trait logging_trait {
protected function log_start($message, $depth = 0) {
$this->log($message, $depth);
if (defined('MDL_PERFTOLOG') && MDL_PERFTOLOG) {
if (MDL_PERFTOLOG) {
$this->tracestats->$depth = [
'mem' => memory_get_usage(),
'time' => microtime(),