Skip to content

Commit 250f2d1

Browse files
committed
Fix issue with compare_benchmarks.dart script
1 parent 7bb8485 commit 250f2d1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

packages/devtools_app/benchmark/scripts/compare_benchmarks.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import 'dart:convert';
66
import 'dart:io';
77

8-
import 'package:devtools_app/src/shared/primitives/utils.dart';
98
import 'package:web_benchmarks/analysis.dart';
109

1110
import 'utils.dart';

packages/devtools_app/benchmark/scripts/utils.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
44

5+
import 'dart:convert';
56
import 'dart:io';
67

78
import 'package:web_benchmarks/analysis.dart';
89

10+
/// Returns a pretty-printed representation of a JSON payload.
11+
String prettyPrintJson(Object? json) =>
12+
const JsonEncoder.withIndent(' ').convert(json);
13+
914
File? checkFileExists(String path) {
1015
final testFile = File.fromUri(Uri.parse(path));
1116
if (!testFile.existsSync()) {

0 commit comments

Comments
 (0)