Commit 4db64ace authored by Devon Carew's avatar Devon Carew

send debug events for flutter lifecycle events (#3903)

* send debug events for flutter lifecycle events

* remove the route event
parent baaa7a03
...@@ -56,6 +56,8 @@ abstract class BindingBase { ...@@ -56,6 +56,8 @@ abstract class BindingBase {
initServiceExtensions(); initServiceExtensions();
assert(_debugServiceExtensionsRegistered); assert(_debugServiceExtensionsRegistered);
developer.postEvent('Flutter.FrameworkInitialization', <String, dynamic>{});
developer.Timeline.finishSync(); developer.Timeline.finishSync();
} }
......
...@@ -208,6 +208,7 @@ abstract class WidgetsBinding extends BindingBase implements GestureBinding, Ren ...@@ -208,6 +208,7 @@ abstract class WidgetsBinding extends BindingBase implements GestureBinding, Ren
if (_needToReportFirstFrame) { if (_needToReportFirstFrame) {
if (_thisFrameWasUseful) { if (_thisFrameWasUseful) {
developer.Timeline.instantSync('Widgets completed first useful frame'); developer.Timeline.instantSync('Widgets completed first useful frame');
developer.postEvent('Flutter.FirstFrame', <String, dynamic>{});
_needToReportFirstFrame = false; _needToReportFirstFrame = false;
} else { } else {
_thisFrameWasUseful = true; _thisFrameWasUseful = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment