diff --git a/lib/moodlelib.php b/lib/moodlelib.php index cb3ab9970a9..410a26bbeca 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -9145,6 +9145,9 @@ function get_performance_info() { $info['html'] .= '
  • '.$info['realtime'].' secs
  • '; $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;