You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -523,27 +548,6 @@ you'll need to configure the data collector explicitly:
523
548
// 'priority' => 300,
524
549
]);
525
550
};
526
-
527
-
Conditional Profiling
528
-
~~~~~~~~~~~~~~~~~~~~~
529
-
530
-
Symfony profiler provides an immense amount of debug information to quickly find the cause of any problem. However, that comes at a price, because the profiler must collect all that information while serving the request. This can slowdown the application even for requests where you don't look at the profiler information (which are most of them).
531
-
532
-
You can enable the profiler conditionally. To do that, add these two new config options:
533
-
534
-
.. configuration-block::
535
-
536
-
.. code-block:: yaml
537
-
538
-
# config/packages/dev/web_profiler.yaml
539
-
framework:
540
-
profiler:
541
-
collect: false
542
-
collect_parameter: 'profile'
543
-
544
-
The collect: false option disables the profiler by default and the collect_parameter: profile option enables it for requests that include the profile query parameter.
545
-
546
-
You can freely choose the query parameter name and you can also enable the profiler by submitting a form field with that name (useful for POST requests) and even a request attribute.
0 commit comments