Add local engine flag support to the SkSL caching performance benchmark scripts (#91773)

This commit is contained in:
Jason Simmons 2021-10-14 10:57:32 -07:00 committed by GitHub
parent b9d0c73ae4
commit 0bf2c9b3b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -814,6 +814,10 @@ class PerfTest {
final String deviceId = device.deviceId; final String deviceId = device.deviceId;
await flutter('drive', options: <String>[ await flutter('drive', options: <String>[
if (localEngine != null)
...<String>['--local-engine', localEngine!],
if (localEngineSrcPath != null)
...<String>['--local-engine-src-path', localEngineSrcPath!],
'--no-dds', '--no-dds',
'--no-android-gradle-daemon', '--no-android-gradle-daemon',
'-v', '-v',
@ -994,6 +998,10 @@ class PerfTestWithSkSL extends PerfTest {
_flutterPath, _flutterPath,
<String>[ <String>[
'run', 'run',
if (localEngine != null)
...<String>['--local-engine', localEngine!],
if (localEngineSrcPath != null)
...<String>['--local-engine-src-path', localEngineSrcPath!],
'--no-dds', '--no-dds',
if (deviceOperatingSystem == DeviceOperatingSystem.ios) if (deviceOperatingSystem == DeviceOperatingSystem.ios)
...<String>[ ...<String>[