Skip to content

added the new collect flag for the profiler #2565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Configuration
* `assets_base_urls`_
* `assets_version`_
* `assets_version_format`_
* `profiler`_
* `collect`_

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

profiler
~~~~~~~~

collect
.......

**default**: ``true``

This option configures the way the profiler behaves when it is enabled. If set
to ``true``, the profiler collects data for all requests. If you want to only
collect information on-demand, you can set the ``collect`` flag to ``false``
and activate the data collects by hand::

$profiler->enable();

Full Default Configuration
--------------------------

Expand Down Expand Up @@ -432,6 +449,7 @@ Full Default Configuration
# profiler configuration
profiler:
enabled: false
collect: true
only_exceptions: false
only_master_requests: false
dsn: file:%kernel.cache_dir%/profiler
Expand Down