We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91ecc7 commit f3b2d37Copy full SHA for f3b2d37
src/driver/aot.rs
@@ -56,6 +56,9 @@ fn emit_module(
56
57
let tmp_file = tcx.output_filenames(()).temp_path(OutputType::Object, Some(&name));
58
let obj = product.object.write().unwrap();
59
+
60
+ tcx.sess.prof.artifact_size("object_file", name.clone(), obj.len().try_into().unwrap());
61
62
if let Err(err) = std::fs::write(&tmp_file, obj) {
63
tcx.sess.fatal(&format!("error writing object file: {}", err));
64
}
0 commit comments