Record query name when profiling "metadata_decode_entry"

This commit is contained in:
Aaron Hill 2020-08-06 07:46:31 -04:00
parent 3cfc7fe78e
commit c9bd9431d0
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -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();