react-perf-tool
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "react-perf-tool", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Record and debug React performance from the browser", | ||
@@ -5,0 +5,0 @@ "main": "lib/react-perf-tool.js", |
# ReactPerfTool | ||
[![Build Status](https://travis-ci.org/RamonGebben/react-perf-tool.svg?branch=master)](https://travis-ci.org/RamonGebben/react-perf-tool) [![Gitter](https://badges.gitter.im/RamonGebben/react-perf-tool.svg)](https://gitter.im/RamonGebben/react-perf-tool?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) | ||
[![npm version](https://badge.fury.io/js/react-perf-tool.svg)](https://badge.fury.io/js/react-perf-tool) | ||
[![license](https://img.shields.io/github/license/RamonGebben/react-perf-tool.svg?maxAge=2592000)](https://github.com/RamonGebben/react-perf-tool/blob/master/LICENSE) | ||
@@ -5,0 +7,0 @@ ReactPerfTool tries to give you a more visual way of debugging performance of your React application. |
@@ -39,3 +39,5 @@ import React, { Component } from 'react'; | ||
printResults() { | ||
const measurements = this.props.perf.getWasted(this.props.perf._allMeasurements) | ||
const getMeasurements = this.props.perf.getWasted ? this.props.perf.getWasted : this.props.perf.getMeasurementsSummaryMap; | ||
console.log('--->>', this.props.perf.getMeasurementsSummaryMap(this.props.perf._allMeasurements)); | ||
const measurements = getMeasurements(this.props.perf._allMeasurements) | ||
.filter(measurement => { | ||
@@ -42,0 +44,0 @@ const label = measurement['Owner > component'] |
@@ -5,3 +5,3 @@ import { expect } from 'chai'; | ||
describe('setUserSettings', () => { | ||
describe.only('setUserSettings', () => { | ||
it('should return return a settings object from mock storage', () => { | ||
@@ -8,0 +8,0 @@ const localStorage = { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2437501
26555
54