Benchmark for semantic overhead during transitions (#10678)
* Benchmark for semantic overhead during transitions * review comments
This commit is contained in:
committed by
GitHub
parent
7158646ba7
commit
e2d4f9242e
@@ -174,11 +174,15 @@ Future<Null> runDemos(Iterable<Demo> demos, FlutterDriver driver) async {
|
||||
}
|
||||
}
|
||||
|
||||
void main() {
|
||||
void main(List<String> args) {
|
||||
group('flutter gallery transitions', () {
|
||||
FlutterDriver driver;
|
||||
setUpAll(() async {
|
||||
driver = await FlutterDriver.connect();
|
||||
if (args.contains('--with_semantics')) {
|
||||
print('Enabeling semantics...');
|
||||
await driver.setSemantics(true);
|
||||
}
|
||||
});
|
||||
|
||||
tearDownAll(() async {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// Copyright 2017 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'transitions_perf.dart' as transitions_perf;
|
||||
|
||||
void main() {
|
||||
transitions_perf.main();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Copyright 2017 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'transitions_perf_test.dart' as transitions_perf_test;
|
||||
|
||||
void main() {
|
||||
transitions_perf_test.main(<String>['--with_semantics']);
|
||||
}
|
||||
Reference in New Issue
Block a user