Skip to content

Commit

Permalink
Record query name when profiling "metadata_decode_entry"
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Aug 6, 2020
1 parent 3cfc7fe commit c9bd943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_metadata/rmeta/decoder/cstore_impl.rs
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 c9bd943

Please sign in to comment.