File tree Expand file tree Collapse file tree
ql/test/query-tests/diagnostics Expand file tree Collapse file tree 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 @@ -256,7 +256,11 @@ fn main() -> anyhow::Result<()> {
256256 if let Some ( ( ref db, ref vfs) ) =
257257 extractor. load_manifest ( manifest, & cargo_config, & load_cargo_config)
258258 {
259+ let before_crate_graph = Instant :: now ( ) ;
259260 crate_graph:: extract_crate_graph ( extractor. traps , db, vfs) ;
261+ extractor
262+ . steps
263+ . push ( ExtractionStep :: crate_graph ( before_crate_graph) ) ;
260264 let semantics = Semantics :: new ( db) ;
261265 for file in files {
262266 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