File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
ql/test/query-tests/diagnostics Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ pub enum ExtractionStepKind {
8383 LoadSource ,
8484 Parse ,
8585 Extract ,
86+ CrateGraph ,
8687}
8788
8889#[ derive( Debug , Clone , Serialize ) ]
@@ -128,6 +129,10 @@ impl ExtractionStep {
128129 )
129130 }
130131
132+ pub fn crate_graph ( start : Instant ) -> Self {
133+ Self :: new ( start, ExtractionStepKind :: CrateGraph , None )
134+ }
135+
131136 pub fn load_source ( start : Instant , target : & Path ) -> Self {
132137 Self :: new (
133138 start,
Original file line number Diff line number Diff line change @@ -239,7 +239,11 @@ fn main() -> anyhow::Result<()> {
239239 let cargo_config = cfg. to_cargo_config ( & cwd ( ) ?) ;
240240 for ( manifest, files) in map. values ( ) . filter ( |( _, files) | !files. is_empty ( ) ) {
241241 if let Some ( ( ref db, ref vfs) ) = extractor. load_manifest ( manifest, & cargo_config) {
242+ let before_crate_graph = Instant :: now ( ) ;
242243 crate_graph:: extract_crate_graph ( extractor. traps , db, vfs) ;
244+ extractor
245+ . steps
246+ . push ( ExtractionStep :: crate_graph ( before_crate_graph) ) ;
243247 let semantics = Semantics :: new ( db) ;
244248 for file in files {
245249 match extractor. load_source ( file, & semantics, vfs) {
Original file line number Diff line number Diff line change 1- | Elements extracted | 405 |
1+ | Elements extracted | 406 |
22| Elements unextracted | 0 |
33| Extraction errors | 0 |
44| Extraction warnings | 7 |
You can’t perform that action at this time.
0 commit comments