How to use the react-addons-perf.printWasted function in react-addons-perf

To help you get started, we’ve selected a few react-addons-perf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github department-of-veterans-affairs / vets-website / src / js / edu-benefits / 1990 / components / debug / PerfPanel.jsx View on Github external
handleStop() {
    Perf.stop();
    const measurements = Perf.getLastMeasurements();
    console.log('Inclusive');
    Perf.printInclusive(measurements);
    console.log('Exclusive');
    Perf.printExclusive(measurements);
    console.log('Wasted');
    Perf.printWasted(measurements);
    console.log('DOM');
    Perf.printOperations(measurements);
  }
github matt-deboer / kuill / pkg / ui / src / components / access / ResourcesTab.js View on Github external
componentDidUpdate = () => {
    Perf.stop()
    let m = Perf.getLastMeasurements()
    Perf.printWasted(m)

    if (!this.state.actionsOpen) {
      this.actionsClicked = false
    }
  }
github OpusCapita / react-grid / examples / components / datagrid / datagrid.component.jsx View on Github external
handleStopClick = () => {
    Perf.stop();
    Perf.printWasted(Perf.getLastMeasurements());
  }
github fdietz / whistler_news_reader / client / js / middleware / performance.js View on Github external
export const reactPerformance = () => next => action => {
  Perf.start();
  const result = next(action);
  Perf.stop();

  Perf.printWasted();

  return result;
};
github ssrwpo / ssr / demo / imports / ui / hoc / perf.jsx View on Github external
setTimeout(() => {
        Perf.stop();
        const measures = Perf.getLastMeasurements();
        Perf.printWasted(measures);
        Perf.printOperations(measures);
      }, 0);
    }
github coinbay / CoinbayDEX / frontend / app / components / Tools.jsx View on Github external
componentDidMount: function() {
    if (this.props.flux.stores.config.debug && Perf) {
      var measurements = Perf.stop();
      Perf.printInclusive(measurements);
      utils.debug("Inclusive", "^");
      Perf.printExclusive(measurements);
      utils.debug("Exclusive", "^");
      Perf.printWasted(measurements);
      utils.debug("Wasted", "^");
    }
  },
github matt-deboer / kuill / pkg / ui / src / components / cluster / NodesTab.js View on Github external
componentDidUpdate = () => {
    Perf.stop()
    let m = Perf.getLastMeasurements()
    Perf.printWasted(m)
  }
github strues / boldr / src / shared / components / PerfProfiler / PerfProfiler.js View on Github external
printWasted = () => {
    const lastMeasurements = Perf.getLastMeasurements();

    Perf.printWasted(lastMeasurements);
  };
github matt-deboer / kuill / pkg / ui / src / components / ClusterPage.js View on Github external
componentDidUpdate = () => {
    Perf.stop()
    let m = Perf.getLastMeasurements()
    Perf.printWasted(m)
  }
github strues / boldr / src / components / PerfProfiler / PerfProfiler.js View on Github external
printWasted = () => {
    const lastMeasurements = Perf.getLastMeasurements();

    Perf.printWasted(lastMeasurements);
  };