1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

chore(bench): add RUNTIME_SNAPSHOT.bin (#18269)

This commit is contained in:
Leo Kettmeir 2023-03-18 16:00:00 -04:00 committed by GitHub
parent f6c364fcf6
commit 4c1f3daa83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,8 +258,11 @@ fn rlib_size(target_dir: &std::path::Path, prefix: &str) -> i64 {
size as i64 size as i64
} }
const BINARY_TARGET_FILES: &[&str] = const BINARY_TARGET_FILES: &[&str] = &[
&["CLI_SNAPSHOT.bin", "COMPILER_SNAPSHOT.bin"]; "CLI_SNAPSHOT.bin",
"RUNTIME_SNAPSHOT.bin",
"COMPILER_SNAPSHOT.bin",
];
fn get_binary_sizes(target_dir: &Path) -> Result<HashMap<String, i64>> { fn get_binary_sizes(target_dir: &Path) -> Result<HashMap<String, i64>> {
let mut sizes = HashMap::<String, i64>::new(); let mut sizes = HashMap::<String, i64>::new();
let mut mtimes = HashMap::<String, SystemTime>::new(); let mut mtimes = HashMap::<String, SystemTime>::new();