From b86028d3b4fc8b2c40cc74eee8fff55bac267675 Mon Sep 17 00:00:00 2001 From: louisehsu Date: Tue, 6 May 2025 17:12:10 -0700 Subject: [PATCH] . --- dev/devicelab/lib/tasks/perf_tests.dart | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index 5560e4f489d..4e22f322c52 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -1739,7 +1739,7 @@ class CompileTest { /* Time to First Frame */ await Process.run(workingDirectory: testDirectory, 'rm', [ '-rf', - 'benchmarkResults.xcresult' + '$testDirectory/benchmarkResults.xcresult' ]).then((ProcessResult results) { print(results.stdout); }); @@ -1756,7 +1756,7 @@ class CompileTest { 'platform=iOS', '-only-testing:BenchmarkTests/BenchmarkTests/testTimeToFirstFrame', '-resultBundlePath', - 'benchmarkResults.xcresult', + '$testDirectory/benchmarkResults.xcresult', '-verbose', 'DEVELOPMENT_TEAM=$developmentTeam', 'CODE_SIGN_STYLE=$codeSignStyle', @@ -1777,18 +1777,10 @@ class CompileTest { 'test-results', 'metrics', '--path', - 'benchmarkResults.xcresult', + '$testDirectory/benchmarkResults.xcresult', '--format', 'json' ]).then((ProcessResult results) { - Directory dir = Directory(testDirectory); - dir.list(recursive: false).forEach((FileSystemEntity f) { - print(f); - if (f is File) { - print(f.lengthSync()); - } - }); - print(results.stdout); metricsJson = json.decode(results.stdout.toString()); });