File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,9 @@ impl<'a> CrateLoader<'a> {
197
197
dep_kind : DepKind ,
198
198
name : Symbol
199
199
) -> ( CrateNum , Lrc < cstore:: CrateMetadata > ) {
200
+ let _prof_timer =
201
+ self . sess . prof . generic_activity ( "metadata_register_crate" ) ;
202
+
200
203
let crate_root = lib. metadata . get_root ( ) ;
201
204
self . verify_no_symbol_conflicts ( span, & crate_root) ;
202
205
Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ macro_rules! provide {
47
47
$tcx: TyCtxt <$lt>,
48
48
def_id_arg: T ,
49
49
) -> <ty:: queries:: $name<$lt> as QueryConfig <$lt>>:: Value {
50
+ let _prof_timer =
51
+ $tcx. prof. generic_activity( "metadata_decode_entry" ) ;
52
+
50
53
#[ allow( unused_variables) ]
51
54
let ( $def_id, $other) = def_id_arg. into_args( ) ;
52
55
assert!( !$def_id. is_local( ) ) ;
@@ -444,6 +447,8 @@ impl cstore::CStore {
444
447
}
445
448
446
449
pub fn load_macro_untracked ( & self , id : DefId , sess : & Session ) -> LoadedMacro {
450
+ let _prof_timer = sess. prof . generic_activity ( "metadata_load_macro" ) ;
451
+
447
452
let data = self . get_crate_data ( id. krate ) ;
448
453
if data. is_proc_macro_crate ( ) {
449
454
return LoadedMacro :: ProcMacro ( data. load_proc_macro ( id. index , sess) ) ;
You can’t perform that action at this time.
0 commit comments