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';
8
8
import 'package:meta/meta.dart' ;
9
9
10
10
import '_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;
12
12
import 'constants.dart' ;
13
13
14
14
/// 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 {
1318
1318
final List <FrameCallback > localPostFrameCallbacks =
1319
1319
List <FrameCallback >.of (_postFrameCallbacks);
1320
1320
_postFrameCallbacks.clear ();
1321
- Timeline .startSync ('POST_FRAME' );
1321
+ if (! kReleaseMode) {
1322
+ FlutterTimeline .startSync ('POST_FRAME' );
1323
+ }
1322
1324
try {
1323
1325
for (final FrameCallback callback in localPostFrameCallbacks) {
1324
1326
_invokeFrameCallback (callback, _currentFrameTimeStamp! );
1325
1327
}
1326
1328
} finally {
1327
- Timeline .finishSync ();
1329
+ if (! kReleaseMode) {
1330
+ FlutterTimeline .finishSync ();
1331
+ }
1328
1332
}
1329
1333
} finally {
1330
1334
_schedulerPhase = SchedulerPhase .idle;
You can’t perform that action at this time.
0 commit comments