Skip to content

Commit 0d75c91

Browse files
committed
Auto merge of #75218 - Aaron1011:feature/prof-metadata-query, r=Mark-Simulacrum
Record query name when profiling "metadata_decode_entry"
2 parents c15bae5 + c9bd943 commit 0d75c91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_metadata/rmeta/decoder/cstore_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ macro_rules! provide {
3737
def_id_arg: ty::query::query_keys::$name<$lt>,
3838
) -> ty::query::query_values::$name<$lt> {
3939
let _prof_timer =
40-
$tcx.prof.generic_activity("metadata_decode_entry");
40+
$tcx.prof.generic_activity(concat!("metadata_decode_entry_", stringify!($name)));
4141

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

0 commit comments

Comments
 (0)