Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf04c2db

Browse files
committed
Merge pull request#2565 from fabpot/profiler-activation
added the new collect flag for the profiler
2 parents2fe611b +450cecd commitf04c2db

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)

[8]ページ先頭

©2009-2025 Movatter.jp