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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user