From aaa28d23f7f4d2cb304ef0e2fdc36c3b5ebe12cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 12 Oct 2020 09:57:34 +0300 Subject: [PATCH] Change default flags to include cpu and memory --- src/Profiler.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Profiler.php b/src/Profiler.php index 224cc6e..ee58093 100644 --- a/src/Profiler.php +++ b/src/Profiler.php @@ -277,7 +277,12 @@ private function getDefaultConfig() 'profiler.enable' => function () { return true; }, - 'profiler.flags' => array(), + 'profiler.flags' => array( + ProfilingFlags::CPU, + ProfilingFlags::MEMORY, + ProfilingFlags::NO_BUILTINS, + ProfilingFlags::NO_SPANS, + ), 'profiler.options' => array(), 'profiler.exclude-env' => array(), 'profiler.simple_url' => function ($url) {