port codegen_module
activity to arg recorder API
This commit is contained in:
parent
b6a7b5accd
commit
1906b7e967
1 changed files with 5 additions and 4 deletions
|
@ -74,10 +74,11 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol) -> (ModuleCodegen
|
||||||
|
|
||||||
fn module_codegen(tcx: TyCtxt<'_>, cgu_name: Symbol) -> ModuleCodegen<ModuleLlvm> {
|
fn module_codegen(tcx: TyCtxt<'_>, cgu_name: Symbol) -> ModuleCodegen<ModuleLlvm> {
|
||||||
let cgu = tcx.codegen_unit(cgu_name);
|
let cgu = tcx.codegen_unit(cgu_name);
|
||||||
let _prof_timer = tcx.prof.generic_activity_with_args(
|
let _prof_timer =
|
||||||
"codegen_module",
|
tcx.prof.generic_activity_with_arg_recorder("codegen_module", |recorder| {
|
||||||
&[cgu_name.to_string(), cgu.size_estimate().to_string()],
|
recorder.record_arg(cgu_name.to_string());
|
||||||
);
|
recorder.record_arg(cgu.size_estimate().to_string());
|
||||||
|
});
|
||||||
// Instantiate monomorphizations without filling out definitions yet...
|
// Instantiate monomorphizations without filling out definitions yet...
|
||||||
let llvm_module = ModuleLlvm::new(tcx, cgu_name.as_str());
|
let llvm_module = ModuleLlvm::new(tcx, cgu_name.as_str());
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue