Fix issue with compare_benchmarks.dart script (#9954)
diff --git a/packages/devtools_app/benchmark/scripts/compare_benchmarks.dart b/packages/devtools_app/benchmark/scripts/compare_benchmarks.dart
index 25c4963..6b15945 100644
--- a/packages/devtools_app/benchmark/scripts/compare_benchmarks.dart
+++ b/packages/devtools_app/benchmark/scripts/compare_benchmarks.dart
@@ -5,7 +5,6 @@
import 'dart:convert';
import 'dart:io';
-import 'package:devtools_app/src/shared/primitives/utils.dart';
import 'package:web_benchmarks/analysis.dart';
import 'utils.dart';
diff --git a/packages/devtools_app/benchmark/scripts/utils.dart b/packages/devtools_app/benchmark/scripts/utils.dart
index 5e015fe..6d7f24e 100644
--- a/packages/devtools_app/benchmark/scripts/utils.dart
+++ b/packages/devtools_app/benchmark/scripts/utils.dart
@@ -2,10 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
+import 'dart:convert';
import 'dart:io';
import 'package:web_benchmarks/analysis.dart';
+/// Returns a pretty-printed representation of a JSON payload.
+String prettyPrintJson(Object? json) =>
+ const JsonEncoder.withIndent(' ').convert(json);
+
File? checkFileExists(String path) {
final testFile = File.fromUri(Uri.parse(path));
if (!testFile.existsSync()) {