Files
sdk/pkg/front_end/tool/incremental_perf_test.dart
T
Ryan Macnak ab4f9351b1 Rename vm_platform_strong.dill to vm_platform.dill.
The name has always been annoying because it did not add strong typing. And now there aren't variants of the VM platform to distinguish.

Leave a copy at the old name to not immediately break illegal uses.

TEST=ci
Cq-Include-Trybots: luci.dart.try:flutter-analyze-try,flutter-frontend-try,flutter-linux-try
Change-Id: Ie76fa7f16940aa1ba8d582eb5197f0ae55dc8938
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/429828
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2025-06-16 18:33:38 -07:00

71 lines
1.8 KiB
Dart

// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// Test to ensure that incremental_perf.dart is running without errors.
import 'dart:io';
import 'package:front_end/src/compute_platform_binaries_location.dart'
show computePlatformBinariesLocation;
import 'incremental_perf.dart' as m show main;
Future<void> main() async {
var sdkOutline = computePlatformBinariesLocation(forceBuildDir: true).resolve(
// TODO(sigmund): switch to `vm_outline.dill` (issue #29881).
"vm_platform.dill");
final ikgBenchmarks = Platform.script.resolve('../benchmarks/ikg/');
final helloEntry = ikgBenchmarks.resolve('hello.dart');
final helloEdits = ikgBenchmarks.resolve('hello.edits.json');
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'$helloEntry',
'$helloEdits'
]);
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'$helloEntry',
'$helloEdits'
]);
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'--implementation=minimal',
'$helloEntry',
'$helloEdits'
]);
final dart2jsEntry = ikgBenchmarks.resolve('dart2js.dart');
final dart2jsEdits = ikgBenchmarks.resolve('dart2js.edits.json');
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'$dart2jsEntry',
'$dart2jsEdits'
]);
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'--implementation=default',
'$dart2jsEntry',
'$dart2jsEdits'
]);
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'--implementation=minimal',
'$dart2jsEntry',
'$dart2jsEdits'
]);
}