Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 5 additions & 0 deletions packages/devtools_app/benchmark/scripts/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Loading