Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 450cecd

Browse files
committed
added the new collect flag for the profiler
1 parent 718764a commit 450cecd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

reference/configuration/framework.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Configuration
4141
* `assets_base_urls`_
4242
* `assets_version`_
4343
* `assets_version_format`_
44+
* `profiler`_
45+
* `collect`_
4446

4547
secret
4648
~~~~~~
@@ -398,6 +400,21 @@ would be ``/images/logo.png?version=5``.
398400
The latter option is useful if you would like older asset versions to remain
399401
accessible at their original URL.
400402

403+
profiler
404+
~~~~~~~~
405+
406+
collect
407+
.......
408+
409+
**default**: ``true``
410+
411+
This option configures the way the profiler behaves when it is enabled. If set
412+
to ``true``, the profiler collects data for all requests. If you want to only
413+
collect information on-demand, you can set the ``collect`` flag to ``false``
414+
and activate the data collects by hand::
415+
416+
$profiler->enable();
417+
401418
Full Default Configuration
402419
--------------------------
403420

@@ -432,6 +449,7 @@ Full Default Configuration
432449
# profiler configuration
433450
profiler:
434451
enabled: false
452+
collect: true
435453
only_exceptions: false
436454
only_master_requests: false
437455
dsn: file:%kernel.cache_dir%/profiler

0 commit comments

Comments
 (0)