- Notifications
You must be signed in to change notification settings - Fork12
vue-perf-devtool/vue-perf-devtool
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Vue Performance Devtool is a browser extension for inspecting the performance of Vue Components. It statistically examines the performance of Vue components based on the measures which are collected by Vue usingwindow.performance API.
Initially started after readingReact Performance Devtool and created fromVue Devtool.
The below extensions represent the current stable release.
To use this performance devtool extension, you'll need to allowvue-devtools inspection andperformance
// make sure to set this synchronously immediately after loading Vue and before `new Vue`Vue.config.devtools=trueVue.config.performance=true
Note: if you keepVue.config.performance = true on production, you will also be able to use Vue official devtools in the production build. If you don't want that, you can toggle the config to false by using an environment variable:
Vue.config.performance=process.env.NODE_ENV!=='production'
- Remove or unmount the component instances which are not being used.
- Inspect what is blocking or taking more time after an operation has been started.
- Examine which components are taking more time to load.
- Init: Time taken in "beforeCreated" and "created" of lifecycle.
- Render: Time taken to create the instance in javascript.
- Patch: Time taken to render in dom.
- Clone this repo
npm installnpm run dev- A plain shell with a test app will be available at
localhost:8080.
Install
web-ext$ npm install --global web-extOr, for Yarn:
$ yarn global add web-extAlso, make sure
PATHis set up. Something like this in~/.bash_profile:$ PATH=$PATH:$(yarn global bin)Build and run in Firefox
$ npm run build$ npm run run:firefoxWhen using Yarn, just replace
npmwithyarn.
Special thanks toEvan You andvue-devtool contributors
About
Vue Performance Devtool is a browser extension for inspecting the performance of Vue Components.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.

