Skip to content

Commit f04c2db

Browse files
committed
Merge pull request symfony#2565 from fabpot/profiler-activation
added the new collect flag for the profiler
2 parents 2fe611b + 450cecd commit f04c2db

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
~~~~~~
@@ -384,6 +386,21 @@ would be ``/images/logo.png?version=5``.
384386
The latter option is useful if you would like older asset versions to remain
385387
accessible at their original URL.
386388

389+
profiler
390+
~~~~~~~~
391+
392+
collect
393+
.......
394+
395+
**default**: ``true``
396+
397+
This option configures the way the profiler behaves when it is enabled. If set
398+
to ``true``, the profiler collects data for all requests. If you want to only
399+
collect information on-demand, you can set the ``collect`` flag to ``false``
400+
and activate the data collects by hand::
401+
402+
$profiler->enable();
403+
387404
Full Default Configuration
388405
--------------------------
389406

@@ -418,6 +435,7 @@ Full Default Configuration
418435
# profiler configuration
419436
profiler:
420437
enabled: false
438+
collect: true
421439
only_exceptions: false
422440
only_master_requests: false
423441
dsn: file:%kernel.cache_dir%/profiler

0 commit comments

Comments
 (0)