Emit flush events on React Native for ReactPerf
Dan Abramov committed
Apr 29, 2016 at 20:53 UTC
49a1542c9f82b2934bd96374b222bcd86ab9d044
1 file changed
+5
src/renderers/native/ReactNativeMount.js
+5
@@ -142,6 +142,10 @@ var ReactNativeMount = {
142
// Mute future events from the top level wrapper.
143
// It is an implementation detail that devtools should not know about.
144
instance._debugID = 0;
145
+
146
+ if (__DEV__) {
147
+ ReactInstrumentation.debugTool.onBeginFlush();
148
+ }
149
}
150
151
// The initial render is synchronous but any updates that happen during
@@ -158,6 +162,7 @@ var ReactNativeMount = {
162
ReactInstrumentation.debugTool.onMountRootComponent(
163
instance._renderedComponent._debugID
164
);
165
+ ReactInstrumentation.debugTool.onEndFlush();
166
}
167
var component = instance.getPublicInstance();
168
if (callback) {