send debug events for flutter lifecycle events (#3903)
* send debug events for flutter lifecycle events * remove the route event
This commit is contained in:
@@ -56,6 +56,8 @@ abstract class BindingBase {
|
||||
initServiceExtensions();
|
||||
assert(_debugServiceExtensionsRegistered);
|
||||
|
||||
developer.postEvent('Flutter.FrameworkInitialization', <String, dynamic>{});
|
||||
|
||||
developer.Timeline.finishSync();
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user