mirror of
https://github.com/moodle/moodle.git
synced 2025-04-12 03:52:16 +02:00
MDL-52666 performance: added REQUEST_METHOD in performance_info
This commit is contained in:
parent
2bd2660751
commit
a0db02bf7f
@ -9101,6 +9101,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