Devicelab memory usage test that navigates repeatedly to a screen within Gallery (#7137)
This commit is contained in:
12
dev/devicelab/bin/tasks/flutter_gallery__memory_nav.dart
Normal file
12
dev/devicelab/bin/tasks/flutter_gallery__memory_nav.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright 2016 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 'dart:async';
|
||||
|
||||
import 'package:flutter_devicelab/tasks/perf_tests.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
|
||||
Future<Null> main() async {
|
||||
await task(createGalleryNavigationMemoryTest());
|
||||
}
|
||||
@@ -52,6 +52,14 @@ TaskFunction createHelloWorldMemoryTest() {
|
||||
);
|
||||
}
|
||||
|
||||
TaskFunction createGalleryNavigationMemoryTest() {
|
||||
return new MemoryTest(
|
||||
'${flutterDirectory.path}/examples/flutter_gallery',
|
||||
'io.flutter.examples.gallery',
|
||||
testTarget: 'test_driver/memory_nav.dart',
|
||||
);
|
||||
}
|
||||
|
||||
/// Measure application startup performance.
|
||||
class StartupTest {
|
||||
static const Duration _startupTimeout = const Duration(minutes: 2);
|
||||
|
||||
@@ -121,6 +121,12 @@ tasks:
|
||||
stage: devicelab
|
||||
required_agent_capabilities: ["has-android-device"]
|
||||
|
||||
flutter_gallery__memory_nav:
|
||||
description: >
|
||||
Measures memory usage after repeated navigation in Gallery.
|
||||
stage: devicelab
|
||||
required_agent_capabilities: ["has-android-device"]
|
||||
|
||||
|
||||
# iOS on-device tests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user