]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #90701 - michaelwoerister:more-artifact-sizes, r=davidtwco
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 9 Nov 2021 18:00:45 +0000 (19:00 +0100)
committerGitHub <noreply@github.com>
Tue, 9 Nov 2021 18:00:45 +0000 (19:00 +0100)
commitfd5a4f42ad425a19c022fcafe482341e2612f29e
treedef10e9ccca8128963ea1abcc1d914a439840330
parent21b0ce1b951850a4cb9ec113cda3b4ea2c509a83
parentfefe1e9192696c07f1655ed2726c4e114b70b096
Rollup merge of #90701 - michaelwoerister:more-artifact-sizes, r=davidtwco

Record more artifact sizes during self-profiling.

This PR adds artifact size recording for

- "linked artifacts" (executables, RLIBs, dylibs, static libs)
- object files
- dwo files
- assembly files
- crate metadata
- LLVM bitcode files
- LLVM IR files
- codegen unit size estimates

Currently the identifiers emitted for these are hard-coded as string literals. Is it worth adding constants to https://github.com/rust-lang/measureme/blob/master/measureme/src/rustc.rs instead? We don't do that for query names and the like -- but artifact kinds might be more stable than query names.
compiler/rustc_codegen_llvm/src/back/write.rs
compiler/rustc_metadata/src/rmeta/encoder.rs