mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 00:12:42 +02:00
Merge branch 'fix/MDL-52666' of https://github.com/mikr0/moodle
This commit is contained in:
commit
2ace1fb16b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user