about summary refs log tree commit diff
path: root/src/librustc_codegen_ssa
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2019-10-28 10:57:54 +0100
committerMichael Woerister <michaelwoerister@posteo>2019-10-28 13:55:13 +0100
commit46a39a2d424cefb2d0c56fae9682cfa253a79d47 (patch)
tree1466f1419d34327e971ffb90b0c1fd99ffb6cc2f /src/librustc_codegen_ssa
parent9285d401a6070094747465962bc49969b93e14c5 (diff)
downloadrust-46a39a2d424cefb2d0c56fae9682cfa253a79d47.tar.gz
rust-46a39a2d424cefb2d0c56fae9682cfa253a79d47.zip
self-profiling: Record something more useful for crate metadata generation event.
Before this commit, we had an event that would only track the compression step
for proc-macros and Rust dylibs. After the commit we measure the time for
acutally generating the crate metadata bytes.
Diffstat (limited to 'src/librustc_codegen_ssa')
-rw-r--r--src/librustc_codegen_ssa/base.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/librustc_codegen_ssa/base.rs b/src/librustc_codegen_ssa/base.rs
index bf687f84635..ee4ec7fb41e 100644
--- a/src/librustc_codegen_ssa/base.rs
+++ b/src/librustc_codegen_ssa/base.rs
@@ -574,8 +574,6 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
 
     if need_metadata_module {
         // Codegen the encoded metadata.
-        let _prof_timer = tcx.prof.generic_activity("codegen_crate_metadata");
-
         let metadata_cgu_name = cgu_name_builder.build_cgu_name(LOCAL_CRATE,
                                                                 &["crate"],
                                                                 Some("metadata")).as_str()