Support for ReactFeatureFlags.logTopLevelRenders timing (#8687)

Call `console.time` / `console.timeEnd` for the top level component when `ReactFeatureFlags.logTopLevelRenders` is enabled
This commit is contained in:
Brian Vaughn
2017-01-21 09:44:47 -08:00
committed by GitHub
parent 4f8c16a750
commit f546505e4e
3 changed files with 18 additions and 3 deletions

View File

@@ -61,8 +61,5 @@ src/renderers/shared/shared/__tests__/ReactEmptyComponent-test.js
src/renderers/shared/shared/__tests__/ReactMultiChildText-test.js
* should reorder keyed text nodes
src/renderers/shared/shared/__tests__/ReactUpdates-test.js
* marks top-level updates
src/renderers/shared/shared/__tests__/refs-test.js
* Should increase refs with an increase in divs

View File

@@ -1598,6 +1598,7 @@ src/renderers/shared/shared/__tests__/ReactUpdates-test.js
* should queue updates from during mount
* calls componentWillReceiveProps setState callback properly
* does not call render after a component as been deleted
* marks top-level updates
* throws in setState if the update callback is not a function
* throws in replaceState if the update callback is not a function
* throws in forceUpdate if the update callback is not a function