Skip to content

Commit

Permalink
Auto merge of #75218 - Aaron1011:feature/prof-metadata-query, r=Mark-…
Browse files Browse the repository at this point in the history
…Simulacrum

Record query name when profiling "metadata_decode_entry"
  • Loading branch information
bors committed Aug 6, 2020
2 parents c15bae5 + c9bd943 commit 0d75c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_metadata/rmeta/decoder/cstore_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ macro_rules! provide {
def_id_arg: ty::query::query_keys::$name<$lt>,
) -> ty::query::query_values::$name<$lt> {
let _prof_timer =
$tcx.prof.generic_activity("metadata_decode_entry");
$tcx.prof.generic_activity(concat!("metadata_decode_entry_", stringify!($name)));

#[allow(unused_variables)]
let ($def_id, $other) = def_id_arg.into_args();
Expand Down

0 comments on commit 0d75c91

Please sign in to comment.