send debug events for flutter lifecycle events (#3903)

* send debug events for flutter lifecycle events

* remove the route event
This commit is contained in:
Devon Carew
2016-05-15 17:39:45 -07:00
parent baaa7a0370
commit 4db64ace96
2 changed files with 3 additions and 0 deletions

View File

@@ -56,6 +56,8 @@ abstract class BindingBase {
initServiceExtensions();
assert(_debugServiceExtensionsRegistered);
developer.postEvent('Flutter.FrameworkInitialization', <String, dynamic>{});
developer.Timeline.finishSync();
}

View File

@@ -208,6 +208,7 @@ abstract class WidgetsBinding extends BindingBase implements GestureBinding, Ren
if (_needToReportFirstFrame) {
if (_thisFrameWasUseful) {
developer.Timeline.instantSync('Widgets completed first useful frame');
developer.postEvent('Flutter.FirstFrame', <String, dynamic>{});
_needToReportFirstFrame = false;
} else {
_thisFrameWasUseful = true;