All Projects → vaheqelyan → React Perftool

vaheqelyan / React Perftool

A browser developer tool extension, which will help you to inspect the performance of React Js components.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to React Perftool

Nim
Streamline Your Node.js Debugging Workflow with Chromium (Chrome, Edge, More) DevTools.
Stars: ✭ 168 (+86.67%)
Mutual labels:  chrome-extension, chrome-devtools
React Rewind
Time Travel Debugger for React useReducer
Stars: ✭ 159 (+76.67%)
Mutual labels:  chrome-extension, chrome-devtools
Polydev
Automatic web components profiling in chrome devtools
Stars: ✭ 118 (+31.11%)
Mutual labels:  chrome-extension, chrome-devtools
Ec Devtools
ec-devtools是支持canvas库 ( easycanvas , https://github.com/chenzhuo1992/easycanvas ) 的chrome调试工具,能对canvas的元素的样式、物理属性等进行修改,达到所见即所得的效果,提高调试效率
Stars: ✭ 35 (-61.11%)
Mutual labels:  chrome-extension, chrome-devtools
Vue Perf Devtool
Vue Performance Devtool is a browser extension for inspecting the performance of Vue Components.
Stars: ✭ 510 (+466.67%)
Mutual labels:  performance, chrome-extension
Shopify Theme Inspector
A Chrome DevTools plugin that visualizes Shopify Liquid render profiling data so you can triage long-running code and reduce server response times!
Stars: ✭ 102 (+13.33%)
Mutual labels:  performance, chrome-devtools
Css Used Chromeext
Get all css rules used by the selected DOM and its children.
Stars: ✭ 146 (+62.22%)
Mutual labels:  chrome-extension, chrome-devtools
React Perf Devtool
A browser developer tool extension to inspect performance of React components.
Stars: ✭ 2,277 (+2430%)
Mutual labels:  performance, chrome-extension
Dirac
A Chrome DevTools fork for ClojureScript developers
Stars: ✭ 732 (+713.33%)
Mutual labels:  chrome-extension, chrome-devtools
Chrome Devtools Autosave
Auto-saving CSS and JavaScript changes from the Chrome Developer Tools
Stars: ✭ 1,032 (+1046.67%)
Mutual labels:  chrome-extension, chrome-devtools
Go Stare
A fast & light web screenshot without headless browser but Chrome DevTools Protocol!
Stars: ✭ 87 (-3.33%)
Mutual labels:  chrome-devtools
Git History Browser Extension
Agrega un botón a la interfáz de archivos de github para ver su historial / Add a button to the github file interface to see its history
Stars: ✭ 87 (-3.33%)
Mutual labels:  chrome-extension
Frame
New-tab extension for Chrome and Firefox
Stars: ✭ 89 (-1.11%)
Mutual labels:  chrome-extension
Buntis
A 100% compliant, self-hosted typescript parser that emits an ESTree-compatible AST
Stars: ✭ 90 (+0%)
Mutual labels:  performance
Junitperf
⛵️Junit performance rely on junit5 and jdk8+.(java 性能测试框架)
Stars: ✭ 86 (-4.44%)
Mutual labels:  performance
Universal Bypass
Don't waste your time with compliance. Universal Bypass circumvents annoying link shorteners.
Stars: ✭ 1,287 (+1330%)
Mutual labels:  chrome-extension
Doom Nano
A 3d raycast engine for Arduino
Stars: ✭ 86 (-4.44%)
Mutual labels:  performance
Imtools
Fast and memory-efficient immutable collections and helper data structures
Stars: ✭ 85 (-5.56%)
Mutual labels:  performance
Liver Collection
A tool to omit tedious operation for granbluefantasy
Stars: ✭ 85 (-5.56%)
Mutual labels:  chrome-extension
Redux Saga Devtools Extension
Chrome extension for Redux-Saga Devtools
Stars: ✭ 90 (+0%)
Mutual labels:  chrome-extension

React perftool

A browser developer tools extension, which will help you to inspect the performance of React Js components.

Why

After React 16 release, react-addons-perf was no longer supported and I decided to create my own tool for inspecting the performance of my components. The main thing for me was how many times my component was re-rendered (updated).I also measure the update time, using High-Resolution Time API.The developer panel itself was built on React.js.The extension is available in the chrome web store.

Usage

First of all, install the package from npm

via NPM

npm install react-perftool-extension --save-dev

or via YARN

yarn add react-perftool-extension --dev

UMD library exposed as ReactPerfToolExtension

https://unpkg.com/[email protected]
const perf = ReactPerfToolExtension;

Then you need to wrap the component and export it,you can use ES7 decorators.

import React from "react";
import perf from "react-perftool-extension";

@perf
export default class ClassName extends React.Component {
  ...
}

Note that package does not work with functional components.

There are two ways of profiling the performance of components. The first is profiling in real time, the second is the ordinary profiling. Real-time profiling is performed by default

Real-time

Record

To disable profiling in real time, you need to go to the extension settings panel and uncheck the checkbox. The package stores a global variable in window. window.perfTool

You also need to set the LIVE_MONITORING property to false.

window.perfTool.options.LIVE_MONITORING = false;

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].