Uncontroversial and backwards compatible 2.0 SDK fixes (#13723)
Small code changes as part of moving the framework SDK forward to a 2.0 dev version.
This commit is contained in:
@@ -50,11 +50,11 @@ class BenchmarkResultPrinter {
|
||||
}
|
||||
|
||||
String _printJson() {
|
||||
return JSON.encode(new Map<String, double>.fromIterable(
|
||||
_results,
|
||||
key: (_BenchmarkResult result) => result.name,
|
||||
value: (_BenchmarkResult result) => result.value,
|
||||
));
|
||||
final Map<String, double> results = <String, double>{};
|
||||
for (_BenchmarkResult result in _results) {
|
||||
results[result.name] = result.value;
|
||||
}
|
||||
return JSON.encode(results);
|
||||
}
|
||||
|
||||
String _printPlainText() {
|
||||
|
||||
Reference in New Issue
Block a user