@@ -546,6 +546,7 @@ impl GlobalCacheTracker {
546546 . with_context ( || "failed to clean entries from the global cache" )
547547 }
548548
549+ #[ tracing:: instrument( skip_all) ]
549550 fn clean_inner (
550551 & mut self ,
551552 clean_ctx : & mut CleanContext < ' _ > ,
@@ -696,6 +697,7 @@ impl GlobalCacheTracker {
696697 ///
697698 /// These orphaned files will be added to `delete_paths` so that the
698699 /// caller can delete them.
700+ #[ tracing:: instrument( skip_all) ]
699701 fn sync_db_with_files (
700702 conn : & Connection ,
701703 now : Timestamp ,
@@ -795,6 +797,7 @@ impl GlobalCacheTracker {
795797 }
796798
797799 /// For parent tables, add any entries that are on disk but aren't tracked in the db.
800+ #[ tracing:: instrument( skip_all) ]
798801 fn update_parent_for_missing_from_db (
799802 conn : & Connection ,
800803 now : Timestamp ,
@@ -822,6 +825,7 @@ impl GlobalCacheTracker {
822825 ///
823826 /// This could happen for example if the user manually deleted the file or
824827 /// any such scenario where the filesystem and db are out of sync.
828+ #[ tracing:: instrument( skip_all) ]
825829 fn update_db_for_removed (
826830 conn : & Connection ,
827831 parent_table_name : & str ,
@@ -851,6 +855,7 @@ impl GlobalCacheTracker {
851855 }
852856
853857 /// Removes database entries for any files that are not on disk for the parent tables.
858+ #[ tracing:: instrument( skip_all) ]
854859 fn update_db_parent_for_removed_from_disk (
855860 conn : & Connection ,
856861 parent_table_name : & str ,
@@ -888,6 +893,7 @@ impl GlobalCacheTracker {
888893 /// Updates the database to add any `.crate` files that are currently
889894 /// not tracked (such as when they are downloaded by an older version of
890895 /// cargo).
896+ #[ tracing:: instrument( skip_all) ]
891897 fn populate_untracked_crate (
892898 conn : & Connection ,
893899 now : Timestamp ,
@@ -922,6 +928,7 @@ impl GlobalCacheTracker {
922928
923929 /// Updates the database to add any files that are currently not tracked
924930 /// (such as when they are downloaded by an older version of cargo).
931+ #[ tracing:: instrument( skip_all) ]
925932 fn populate_untracked (
926933 conn : & Connection ,
927934 now : Timestamp ,
@@ -987,6 +994,7 @@ impl GlobalCacheTracker {
987994 /// size.
988995 ///
989996 /// `update_db_for_removed` should be called before this is called.
997+ #[ tracing:: instrument( skip_all) ]
990998 fn update_null_sizes (
991999 conn : & Connection ,
9921000 gctx : & GlobalContext ,
@@ -1560,6 +1568,7 @@ impl DeferredGlobalLastUse {
15601568 /// Saves all of the deferred information to the database.
15611569 ///
15621570 /// This will also clear the state of `self`.
1571+ #[ tracing:: instrument( skip_all) ]
15631572 pub fn save ( & mut self , tracker : & mut GlobalCacheTracker ) -> CargoResult < ( ) > {
15641573 let _p = crate :: util:: profile:: start ( "saving last-use data" ) ;
15651574 trace ! ( target: "gc" , "saving last-use data" ) ;
0 commit comments