Rollup merge of #82029 - tmiasko:debug, r=matthewjasper
Use debug log level for developer oriented logs The information logged here is of limited general interest, while at the same times makes it impractical to simply enable logging and share the resulting logs due to the amount of the output produced. Reduce log level from info to debug for developer oriented information. For example, when building cargo, this reduces the amount of logs generated by `RUSTC_LOG=info cargo build` from 265 MB to 79 MB. Continuation of changes from 81350.
This commit is contained in:
commit
c8dacf95ae
7 changed files with 16 additions and 10 deletions
|
@ -159,7 +159,7 @@ impl Inliner<'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
#[instrument(skip(self, caller_body))]
|
||||
#[instrument(level = "debug", skip(self, caller_body))]
|
||||
fn is_mir_available(&self, callee: Instance<'tcx>, caller_body: &Body<'tcx>) -> bool {
|
||||
match callee.def {
|
||||
InstanceDef::Item(_) => {
|
||||
|
@ -258,7 +258,7 @@ impl Inliner<'tcx> {
|
|||
None
|
||||
}
|
||||
|
||||
#[instrument(skip(self, callee_body))]
|
||||
#[instrument(level = "debug", skip(self, callee_body))]
|
||||
fn should_inline(&self, callsite: CallSite<'tcx>, callee_body: &Body<'tcx>) -> bool {
|
||||
let tcx = self.tcx;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ use rustc_middle::ty::{self, subst::SubstsRef, InstanceDef, TyCtxt};
|
|||
|
||||
// FIXME: check whether it is cheaper to precompute the entire call graph instead of invoking
|
||||
// this query riddiculously often.
|
||||
#[instrument(skip(tcx, root, target))]
|
||||
#[instrument(level = "debug", skip(tcx, root, target))]
|
||||
crate fn mir_callgraph_reachable(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
(root, target): (ty::Instance<'tcx>, LocalDefId),
|
||||
|
@ -27,7 +27,10 @@ crate fn mir_callgraph_reachable(
|
|||
!tcx.is_constructor(root.def_id()),
|
||||
"you should not call `mir_callgraph_reachable` on enum/struct constructor functions"
|
||||
);
|
||||
#[instrument(skip(tcx, param_env, target, stack, seen, recursion_limiter, caller))]
|
||||
#[instrument(
|
||||
level = "debug",
|
||||
skip(tcx, param_env, target, stack, seen, recursion_limiter, caller)
|
||||
)]
|
||||
fn process(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
param_env: ty::ParamEnv<'tcx>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue