react-perf-devtool
Advanced tools
Comparing version 3.0.0-beta3 to 3.0.0-beta4
{ | ||
"name": "react-perf-devtool", | ||
"version": "3.0.0-beta3", | ||
"version": "3.0.0-beta4", | ||
"description": | ||
@@ -5,0 +5,0 @@ "A chrome devtool extension for inspecting performance of React Components", |
@@ -28,3 +28,3 @@ var getReactPerformanceData = require('../shared/parse') | ||
function logToConsole(measures) { | ||
measures.forEach(({ componentName, mount, render, update }) => { | ||
measures.forEach(({ componentName, mount, render, update, totalTime, percentTimeSpent }) => { | ||
const data = { | ||
@@ -35,5 +35,7 @@ componentName, | ||
update, | ||
totalTime, | ||
percentTimeSpent, | ||
} | ||
window.navigator.sendBeacon('http://127.0.0.1:3000', JSON.stringify(data)) | ||
window.navigator.sendBeacon('http://127.0.0.1:3000', JSON.stringify(data, null, 2)) | ||
}) | ||
@@ -40,0 +42,0 @@ } |
40735
792