Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 72f6169

Browse files
committed
versioning
1 parent d8fffef commit 72f6169

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

packages/e2e/lib/e2e_perf.dart

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,24 @@ typedef ControlCallback = Future<void> Function(WidgetController controller);
2424

2525
bool _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.
2846
Future<void> watchPerformance(
2947
E2EWidgetsFlutterBinding binding,

packages/e2e/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies:
1414
sdk: flutter
1515
flutter_test:
1616
sdk: flutter
17-
path:
17+
path: ^1.6.4
1818

1919
dev_dependencies:
2020
pedantic: ^1.8.0

0 commit comments

Comments
 (0)