MCPcopy Create free account
hub / github.com/Lobos/react-ui / getTotalTime

Function getTotalTime

docs/lib/react.js:9713–9724  ·  view source on GitHub ↗
(measurements)

Source from the content-addressed store, hash-verified

9711};
9712
9713function getTotalTime(measurements) {
9714 // TODO: return number of DOM ops? could be misleading.
9715 // TODO: measure dropped frames after reconcile?
9716 // TODO: log total time of each reconcile and the top-level component
9717 // class that triggered it.
9718 var totalTime = 0;
9719 for (var i = 0; i < measurements.length; i++) {
9720 var measurement = measurements[i];
9721 totalTime += measurement.totalTime;
9722 }
9723 return totalTime;
9724}
9725
9726function getDOMSummary(measurements) {
9727 var items = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…