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

Vue Performance Devtool is a browser extension for inspecting the performance of Vue Components.

NotificationsYou must be signed in to change notification settings

vue-perf-devtool/vue-perf-devtool

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.

logo

Initially started after readingReact Performance Devtool and created fromVue Devtool.

Installation

The below extensions represent the current stable release.

Implementation

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'

Uses

  • 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.

Description

demo

  • 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.

Development

  1. Clone this repo
  2. npm install
  3. npm run dev
  4. A plain shell with a test app will be available atlocalhost:8080.

Testing as Firefox addon

  1. Installweb-ext

    $ npm install --global web-ext

    Or, for Yarn:

    $ yarn global add web-ext

    Also, make surePATH is set up. Something like this in~/.bash_profile:

    $ PATH=$PATH:$(yarn global bin)
  2. Build and run in Firefox

    $ npm run build$ npm run run:firefox

    When using Yarn, just replacenpm withyarn.

Acknowledgments

Special thanks toEvan You andvue-devtool contributors

License

MIT

About

Vue Performance Devtool is a browser extension for inspecting the performance of Vue Components.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp