@@ -126,7 +126,7 @@ impl flags::AnalysisStats {
126
126
127
127
let mut dep_loc = 0 ;
128
128
let mut workspace_loc = 0 ;
129
- let mut deps_item_trees = 0 ;
129
+ let mut dep_item_trees = 0 ;
130
130
let mut workspace_item_trees = 0 ;
131
131
132
132
for source_root_id in source_roots {
@@ -146,7 +146,7 @@ impl flags::AnalysisStats {
146
146
db. file_item_tree ( EditionedFileId :: current_edition ( file_id) . into ( ) ) ;
147
147
148
148
dep_loc += length;
149
- deps_item_trees += 1
149
+ dep_item_trees += 1
150
150
}
151
151
}
152
152
}
@@ -156,16 +156,19 @@ impl flags::AnalysisStats {
156
156
let item_tree_time = item_tree_sw. elapsed ( ) ;
157
157
158
158
eprintln ! ( "Source stats:" ) ;
159
- let dep_loc = UsizeWithUnderscore ( dep_loc) ;
160
- let deps_item_trees = UsizeWithUnderscore ( deps_item_trees) ;
161
- let workspace_loc = UsizeWithUnderscore ( workspace_loc) ;
162
- let workspace_item_trees = UsizeWithUnderscore ( workspace_item_trees) ;
163
-
164
- eprintln ! ( " dependency lines of code: {dep_loc}, item trees: {deps_item_trees}" ) ;
165
- eprintln ! ( " workspace lines of code: {workspace_loc}, item trees: {workspace_item_trees}" ) ;
159
+ eprintln ! (
160
+ " dependency lines of code: {}, item trees: {}" ,
161
+ UsizeWithUnderscore ( dep_loc) ,
162
+ UsizeWithUnderscore ( dep_item_trees) ,
163
+ ) ;
164
+ eprintln ! (
165
+ " workspace lines of code: {}, item trees: {}" ,
166
+ UsizeWithUnderscore ( workspace_loc) ,
167
+ UsizeWithUnderscore ( workspace_item_trees) ,
168
+ ) ;
166
169
167
170
// FIXME(salsa-transition): bring back stats for ParseQuery (file size)
168
- // and ParseMacroExpansionQuery (mcaro expansion "file") size whenever we implement
171
+ // and ParseMacroExpansionQuery (macro expansion "file") size whenever we implement
169
172
// Salsa's memory usage tracking works with tracked functions.
170
173
171
174
// let mut total_file_size = Bytes::default();
@@ -180,7 +183,7 @@ impl flags::AnalysisStats {
180
183
// }
181
184
// eprintln!("source files: {total_file_size}, macro files: {total_macro_file_size}");
182
185
183
- eprintln ! ( "{:<20} {}" , "Item Tree Collection:" , item_tree_time) ;
186
+ eprintln ! ( "{:<20} {}" , "Item Tree Collection (workspace) :" , item_tree_time) ;
184
187
report_metric ( "item tree time" , item_tree_time. time . as_millis ( ) as u64 , "ms" ) ;
185
188
186
189
let mut crate_def_map_sw = self . stop_watch ( ) ;
0 commit comments