about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-08-06 07:46:31 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-08-06 09:33:34 -0400
commitc9bd9431d008af433f26c1af281e5240c1a41a66 (patch)
tree9b19c8c85df84152db1be00e48e21c3e88f4325c /src
parent3cfc7fe78eccc754b16981704a098d7bd520e2fd (diff)
Record query name when profiling "metadata_decode_entry"
Diffstat (limited to 'src')
-rw-r--r--src/librustc_metadata/rmeta/decoder/cstore_impl.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_metadata/rmeta/decoder/cstore_impl.rs b/src/librustc_metadata/rmeta/decoder/cstore_impl.rs
index e51862be9a8..2897480c32b 100644
--- a/src/librustc_metadata/rmeta/decoder/cstore_impl.rs
+++ b/src/librustc_metadata/rmeta/decoder/cstore_impl.rs
@@ -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();