Skip to content
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

Enable performance measuring in production, at the user's request #11775

Open
vegerot opened this issue Nov 17, 2020 · 0 comments · May be fixed by #11776
Open

Enable performance measuring in production, at the user's request #11775

vegerot opened this issue Nov 17, 2020 · 0 comments · May be fixed by #11776

Comments

@vegerot
Copy link

@vegerot vegerot commented Nov 17, 2020

What problem does this feature solve?

Similar to devtools, Vue.config.devtools is enabled by default for development and disabled by default for production. However, the developer can choose to override that behavior (for example, for debugging) by manually setting Vue.config.devtools = true. However, this same lenience is not afforded to Vue.config.performance. Even if explicitly enabling it, the developer's setting will be overridden by Vue in production.

What does the proposed API look like?

This proposed solution brings Vue.config.performance in line with Vue.config.devtools, by disabling it by default in production, but gives the developer the ability to explicitly ��enable it; for example, for debugging performance issues.

vegerot added a commit to vegerot/vue that referenced this issue Nov 17, 2020
@vegerot vegerot linked a pull request that will close this issue Nov 17, 2020
13 tasks
vegerot added a commit to vegerot/vue that referenced this issue Nov 17, 2020
close vuejs#11775

Similar to devtools, `Vue.config.devtools` is enabled by default for development and disabled by default for production.  However, the developer can choose to override that behavior (for example, for debugging) by manually setting `Vue.config.devtools = true`.  However, this same lenience is not afforded to `Vue.config.performance`.  Even if explicitly enabling it, the developer's setting will be overridden by Vue in production.

This commit brings `Vue.config.performance` in line with `Vue.config.devtools`, by disabling it by default in production, but gives the developer the ability to explicitly enable it; for example, for debugging performance issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants