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

Profiler activation#7859

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 3 commits intosymfony:masterfromfabpot:profiler-activation
Apr 26, 2013
Merged

Conversation

fabpot
Copy link
Member

QA
Bug fix?no
New feature?yes
BC breaks?yes
Deprecations?no
Tests pass?yes
Fixed tickets#7064,#7071
LicenseMIT
Doc PRsymfony/symfony-docs#2565

As stated in#7071, there is no way to disable the profiler completely. Even when theenabled flag is set tofalse, the profiler is still registered but the data collectors are not activated.

Now, whenenabled isfalse, the profiler is disabled. To get the oldfalse behavior, you now need to setenabled totrue and set the newcollect flag tofalse.

Todo:

  • update docs
  • update Symfony SE -- not needed

@@ -39,6 +39,10 @@ class WebProfilerExtension extends Extension
*/
public function load(array $configs, ContainerBuilder $container)
{
if (!$container->hasParameter('profiler.class')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This would break if FrameworkBundle is registered after WebProfilerBundle.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Indeed. I have not changed this part of the old PR.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

fixed now

dlsniperand others added3 commitsApril 26, 2013 16:14
Before:  enabled: true  # the profiler is enabled and data are collected  enabled: false # the profiler is enabled but data are not collected (data can be collected on demand)  No way to disable the profilerAfter:  enabled: true  # the profiler is enabled and data are collected  collect: true  enabled: true  # the profiler is enabled but data are not collected (data can be collected on demand)  collect: false  enabled: false # the profiler is disabled
fabpot added a commit that referenced this pull requestApr 26, 2013
This PR was merged into the master branch.Discussion----------Profiler activation| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | yes| BC breaks?    | yes| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#7064,#7071| License       | MIT| Doc PR        |symfony/symfony-docs#2565As stated in#7071, there is no way to disable the profiler completely. Even when the `enabled` flag is set to `false`, the profiler is still registered but the data collectors are not activated.Now, when `enabled` is `false`, the profiler is disabled. To get the old `false` behavior, you now need to set `enabled` to `true` and set the new `collect` flag to `false`.Todo: - [x] update docs - [x] update Symfony SE -- not neededCommits-------88ebd62 fixed the registration of the web profiler when the profiler is disableda11f901 [FrameworkBundle] added a way to disable the profilerf675dd8 Truly disabled profiler in prod
@fabpotfabpot merged commit88ebd62 intosymfony:masterApr 26, 2013
@Tobion
Copy link
Contributor

What is the use-case for an enabled profiler that does not collect any data?

@stof
Copy link
Member

@Tobion enabling it only for some uri (with a request matcher) or enablign it only for some tests of the testsuite instead of all of them (to make the functional testsuite faster)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@fabpot@Tobion@stof@dlsniper

[8]ページ先頭

©2009-2025 Movatter.jp