This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,24 @@ typedef ControlCallback = Future<void> Function(WidgetController controller);
2424
2525bool _firstRun = true ;
2626
27+ /// The warning message to show when a benchmark is performed with assert on.
28+ /// TODO(CareF) remove this and update pubspect when flutter/flutter#61509 is
29+ /// in released version.
30+ const String kDebugWarning = '''
31+ ┏╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍┓
32+ ┇ ⚠ THIS BENCHMARK IS BEING RUN IN DEBUG MODE ⚠ ┇
33+ ┡╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍┦
34+ │ │
35+ │ Numbers obtained from a benchmark while asserts are │
36+ │ enabled will not accurately reflect the performance │
37+ │ that will be experienced by end users using release ╎
38+ │ builds. Benchmarks should be run using this command ╎
39+ │ line: "flutter run --profile test.dart" or ┊
40+ │ or "flutter drive --profile -t test.dart". ┊
41+ │ ┊
42+ └─────────────────────────────────────────────────╌┄┈ 🐢
43+ ''' ;
44+
2745/// watches the [FrameTiming] of `action` and report it to the e2e binding.
2846Future <void > watchPerformance (
2947 E2EWidgetsFlutterBinding binding,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ dependencies:
1414 sdk : flutter
1515 flutter_test :
1616 sdk : flutter
17- path :
17+ path : ^1.6.4
1818
1919dev_dependencies :
2020 pedantic : ^1.8.0
You can’t perform that action at this time.
0 commit comments