[ Benchmarks ] Output CodeSize of 0 for missing artifacts on certain
platforms Change-Id: Iceee212c432524055650a2a008d3023aa84efe82 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206585 Reviewed-by: William Hesse <whesse@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
cb6d0e03c1
commit
378ab67916
@@ -34,8 +34,13 @@ const snapshots = <String>[
|
||||
];
|
||||
|
||||
Future<void> reportArtifactSize(String path, String name) async {
|
||||
final size = await File(path).length();
|
||||
print('SDKArtifactSizes.$name(CodeSize): $size');
|
||||
try {
|
||||
final size = await File(path).length();
|
||||
print('SDKArtifactSizes.$name(CodeSize): $size');
|
||||
} on FileSystemException {
|
||||
// Report dummy data for artifacts that don't exist for specific platforms.
|
||||
print('SDKArtifactSizes.$name(CodeSize): 0');
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> main() async {
|
||||
|
||||
@@ -34,8 +34,13 @@ const snapshots = <String>[
|
||||
];
|
||||
|
||||
Future<void> reportArtifactSize(String path, String name) async {
|
||||
final size = await File(path).length();
|
||||
print('SDKArtifactSizes.$name(CodeSize): $size');
|
||||
try {
|
||||
final size = await File(path).length();
|
||||
print('SDKArtifactSizes.$name(CodeSize): $size');
|
||||
} on FileSystemException {
|
||||
// Report dummy data for artifacts that don't exist for specific platforms.
|
||||
print('SDKArtifactSizes.$name(CodeSize): 0');
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> main() async {
|
||||
|
||||
Reference in New Issue
Block a user