"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dev/devicelab/lib/tasks/perf_tests.dart" between
flutter-2.0.2.tar.gz and flutter-2.0.3.tar.gz

About: Flutter is Google's SDK for crafting beautiful apps for mobile, web, and desktop from a single codebase.

perf_tests.dart  (flutter-2.0.2):perf_tests.dart  (flutter-2.0.3)
skipping to change at line 487 skipping to change at line 487
case DeviceOperatingSystem.fuchsia: case DeviceOperatingSystem.fuchsia:
case DeviceOperatingSystem.fake: case DeviceOperatingSystem.fake:
break; break;
} }
const int maxFailures = 3; const int maxFailures = 3;
int currentFailures = 0; int currentFailures = 0;
for (int i = 0; i < iterations; i += 1) { for (int i = 0; i < iterations; i += 1) {
final int result = await flutter('run', options: <String>[ final int result = await flutter('run', options: <String>[
'--no-android-gradle-daemon', '--no-android-gradle-daemon',
'--no-publish-port',
'--verbose', '--verbose',
'--profile', '--profile',
'--trace-startup', '--trace-startup',
'-d', '-d',
device.deviceId, device.deviceId,
if (applicationBinaryPath != null) if (applicationBinaryPath != null)
'--use-application-binary=$applicationBinaryPath', '--use-application-binary=$applicationBinaryPath',
], canFail: true); ], canFail: true);
if (result == 0) { if (result == 0) {
final Map<String, dynamic> data = json.decode( final Map<String, dynamic> data = json.decode(
skipping to change at line 785 skipping to change at line 786
_flutterPath, _flutterPath,
<String>[ <String>[
'run', 'run',
if (deviceOperatingSystem == DeviceOperatingSystem.ios) if (deviceOperatingSystem == DeviceOperatingSystem.ios)
...<String>[ ...<String>[
'--device-timeout', '5', '--device-timeout', '5',
], ],
'--verbose', '--verbose',
'--verbose-system-logs', '--verbose-system-logs',
'--purge-persistent-cache', '--purge-persistent-cache',
'--no-publish-port',
'--profile', '--profile',
if (cacheSkSL) '--cache-sksl', if (cacheSkSL) '--cache-sksl',
'-d', _device.deviceId, '-d', _device.deviceId,
'-t', testTarget, '-t', testTarget,
'--endless-trace-buffer', '--endless-trace-buffer',
if (appBinary != null) ...<String>['--use-application-binary', _appBinar y], if (appBinary != null) ...<String>['--use-application-binary', _appBinar y],
'--vmservice-out-file', _vmserviceFileName, '--vmservice-out-file', _vmserviceFileName,
], ],
); );
skipping to change at line 1288 skipping to change at line 1290
Future<void> _launchApp() async { Future<void> _launchApp() async {
print('launching $project$driverTest on device...'); print('launching $project$driverTest on device...');
final String flutterPath = path.join(flutterDirectory.path, 'bin', 'flutter' ); final String flutterPath = path.join(flutterDirectory.path, 'bin', 'flutter' );
_runProcess = await startProcess( _runProcess = await startProcess(
flutterPath, flutterPath,
<String>[ <String>[
'run', 'run',
'--verbose', '--verbose',
'--profile', '--profile',
'--no-publish-port',
'-d', _device.deviceId, '-d', _device.deviceId,
driverTest, driverTest,
], ],
); );
// Listen for Observatory URI and forward stdout/stderr // Listen for Observatory URI and forward stdout/stderr
final Completer<String> observatoryUri = Completer<String>(); final Completer<String> observatoryUri = Completer<String>();
_runProcess.stdout _runProcess.stdout
.transform<String>(utf8.decoder) .transform<String>(utf8.decoder)
.transform<String>(const LineSplitter()) .transform<String>(const LineSplitter())
skipping to change at line 1403 skipping to change at line 1406
final StreamSubscription<String> adb = device.logcat.listen( final StreamSubscription<String> adb = device.logcat.listen(
(String data) { (String data) {
if (durationPattern.hasMatch(data)) if (durationPattern.hasMatch(data))
durationCompleter.complete(int.parse(durationPattern.firstMatch(data ).group(1))); durationCompleter.complete(int.parse(durationPattern.firstMatch(data ).group(1)));
}, },
); );
print('launching $project$test on device...'); print('launching $project$test on device...');
await flutter('run', options: <String>[ await flutter('run', options: <String>[
'--verbose', '--verbose',
'--no-publish-port',
'--no-fast-start', '--no-fast-start',
'--${_reportedDurationTestToString(flavor)}', '--${_reportedDurationTestToString(flavor)}',
'--no-resident', '--no-resident',
'-d', device.deviceId, '-d', device.deviceId,
test, test,
]); ]);
final int duration = await durationCompleter.future; final int duration = await durationCompleter.future;
print('terminating...'); print('terminating...');
await device.stop(package); await device.stop(package);
 End of changes. 4 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)