File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import 'dart:typed_data';
88import 'package:meta/meta.dart' ;
99
1010import '_timeline_io.dart'
11- if (dart.library.js_util ) '_timeline_web.dart' as impl;
11+ if (dart.library.js_interop ) '_timeline_web.dart' as impl;
1212import 'constants.dart' ;
1313
1414/// Measures how long blocks of code take to run.
Original file line number Diff line number Diff line change @@ -1318,13 +1318,17 @@ mixin SchedulerBinding on BindingBase {
13181318 final List <FrameCallback > localPostFrameCallbacks =
13191319 List <FrameCallback >.of (_postFrameCallbacks);
13201320 _postFrameCallbacks.clear ();
1321- Timeline .startSync ('POST_FRAME' );
1321+ if (! kReleaseMode) {
1322+ FlutterTimeline .startSync ('POST_FRAME' );
1323+ }
13221324 try {
13231325 for (final FrameCallback callback in localPostFrameCallbacks) {
13241326 _invokeFrameCallback (callback, _currentFrameTimeStamp! );
13251327 }
13261328 } finally {
1327- Timeline .finishSync ();
1329+ if (! kReleaseMode) {
1330+ FlutterTimeline .finishSync ();
1331+ }
13281332 }
13291333 } finally {
13301334 _schedulerPhase = SchedulerPhase .idle;
You can’t perform that action at this time.
0 commit comments