File tree Expand file tree Collapse file tree 5 files changed +268
-77
lines changed Expand file tree Collapse file tree 5 files changed +268
-77
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ use crate::report::pysa::module::ModuleKey;
4141use crate :: report:: pysa:: override_graph:: WholeProgramReversedOverrideGraph ;
4242use crate :: report:: pysa:: scope:: ScopeParent ;
4343use crate :: report:: pysa:: scope:: get_scope_parent;
44+ use crate :: report:: pysa:: step_logger:: StepLogger ;
4445use crate :: report:: pysa:: types:: PysaType ;
4546use crate :: state:: lsp:: FindDefinitionItemWithDocstring ;
4647use crate :: state:: state:: Transaction ;
@@ -552,6 +553,11 @@ pub fn collect_function_base_definitions(
552553 module_ids : & ModuleIds ,
553554 reversed_override_graph : & WholeProgramReversedOverrideGraph ,
554555) -> WholeProgramFunctionDefinitions < FunctionBaseDefinition > {
556+ let step = StepLogger :: start (
557+ "Indexing function definitions" ,
558+ "Indexed function definitions" ,
559+ ) ;
560+
555561 let base_definitions = dashmap:: DashMap :: new ( ) ;
556562
557563 ThreadPool :: new ( ) . install ( || {
@@ -565,5 +571,6 @@ pub fn collect_function_base_definitions(
565571 } ) ;
566572 } ) ;
567573
574+ step. finish ( ) ;
568575 WholeProgramFunctionDefinitions ( base_definitions. into_read_only ( ) )
569576}
You can’t perform that action at this time.
0 commit comments