Add support for artifact size profiling

This commit is contained in:
Ryan Levick 2021-07-23 16:25:58 +02:00
parent ca8078d7b2
commit 947a33bf20
8 changed files with 76 additions and 16 deletions

View file

@ -95,6 +95,12 @@ where
return;
}
sess.prof.artifact_size(
&name.replace(' ', "_"),
path_buf.file_name().unwrap().to_string_lossy(),
encoder.position() as u64,
);
debug!("save: data written to disk successfully");
}