This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 2 files changed +19
-1
lines changed
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);
24
24
25
25
bool _firstRun = true ;
26
26
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
+
27
45
/// watches the [FrameTiming] of `action` and report it to the e2e binding.
28
46
Future <void > watchPerformance (
29
47
E2EWidgetsFlutterBinding binding,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ dependencies:
14
14
sdk : flutter
15
15
flutter_test :
16
16
sdk : flutter
17
- path :
17
+ path : ^1.6.4
18
18
19
19
dev_dependencies :
20
20
pedantic : ^1.8.0
You can’t perform that action at this time.
0 commit comments