blob: b360cca87c7725a163e06cabf704a707e7090a70 [file] [log] [blame]
// Copyright (c) 2020, 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.
import 'dart:io' show Platform;
const String enableIncrementalCompilerBenchmarking =
"DART_CFE_ENABLE_INCREMENTAL_COMPILER_BENCHMARKING";
const Set<String> _known = {enableIncrementalCompilerBenchmarking};
Set<String> getExperimentEnvironment() {
Set<String> enabled = {};
Map<String, String> environment = Platform.environment;
for (String experiment in _known) {
if (environment[experiment] == "true") {
// Coverage-ignore-block(suite): Not run.
enabled.add(experiment);
}
}
return enabled;
}