Benchmark for semantic overhead during transitions (#10678)

* Benchmark for semantic overhead during transitions

* review comments
This commit is contained in:
Michael Goderbauer
2017-06-14 08:09:05 -07:00
committed by GitHub
parent 7158646ba7
commit e2d4f9242e
6 changed files with 71 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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();
}

View File

@@ -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']);
}