Merge branch 'fix/MDL-52666' of https://github.com/mikr0/moodle
This commit is contained in:
@@ -9145,6 +9145,9 @@ function get_performance_info() {
|
||||
$info['html'] .= '<li class="timeused col-sm-4">'.$info['realtime'].' secs</li> ';
|
||||
$info['txt'] .= 'time: '.$info['realtime'].'s ';
|
||||
|
||||
// GET/POST (or NULL if $_SERVER['REQUEST_METHOD'] is undefined) is useful for txt logged information.
|
||||
$info['txt'] .= 'method: ' . ($_SERVER['REQUEST_METHOD'] ?? "NULL") . ' ';
|
||||
|
||||
if (function_exists('memory_get_usage')) {
|
||||
$info['memory_total'] = memory_get_usage();
|
||||
$info['memory_growth'] = memory_get_usage() - $PERF->startmemory;
|
||||
|
||||
Reference in New Issue
Block a user