Skip to content

Instantly share code, notes, and snippets.

@davidbarsky
Created February 6, 2024 16:20
Show Gist options
  • Save davidbarsky/c3c1f971144a096dd4e7c7e107805c7b to your computer and use it in GitHub Desktop.
Save davidbarsky/c3c1f971144a096dd4e7c7e107805c7b to your computer and use it in GitHub Desktop.
<details>
<summary> </summary>
```
783ms handle_completion
30ms CompletionContext::new
13ms CompletionContext::analyze
13ms Semantics::analyze_impl (2 calls)
13ms infer:wait @ detail = "new" (2 calls)
13ms infer_query
7ms iterate_method_candidates_dyn @ mode = Path name = Some(Name(Text("read"))) traits_in_scope_len = 32 (4 calls)
4ms iterate_method_candidates_for_self_ty @ name = Some(Name(Text("read"))) (2 calls)
4ms iterate_inherent_methods @ name = Some(Name(Text("read"))) (2 calls)
2ms impls_for_self_ty @ name = Some(Name(Text("read")))
2ms is_valid_candidate (3 calls)
2ms is_valid_fn_candidate (3 calls)
2ms run_in_snapshot
2ms trait_solve::wait (4 calls)
2ms iterate_method_candidates_with_autoref @ name = Some(Name(Text("Some"))) (3 calls)
2ms iterate_method_candidates_by_receiver @ name = Some(Name(Text("Some"))) (7 calls)
2ms iterate_trait_method_candidates @ name = Some(Name(Text("Some"))) (15 calls)
2ms is_valid_candidate (1947 calls)
1ms is_valid_fn_candidate (1847 calls)
16ms CompletionContext::expand
16ms SourceBinder::to_module_def (4 calls)
16ms crate_def_map:wait (9 calls)
719ms import_on_the_fly_method @ potential_import_name = ""
714ms import_assets::search_for_imports
714ms import_assets::search_for
714ms import_assets::trait_applicable_items
12ms items_with_name @ name = "" assoc_item_search = AssocItemsOnly crate = Some("omicron_common")
12ms find_items
5ms crate_symbols
1ms module_symbols (2 calls)
6ms query_external_importables
6ms search_dependencies @ query = Query { query: "", lowercased: "", search_mode: Fuzzy, assoc_mode: AssocItemsOnly, case_sensitive: false }
702ms iterate_method_candidates
702ms iterate_method_candidates_dyn @ with_local_impls = 300 traits_in_scope = 300 name = None
702ms iterate_method_candidates_dyn @ mode = MethodCall name = None traits_in_scope_len = 300
702ms iterate_method_candidates_with_autoref @ name = None (2 calls)
702ms iterate_method_candidates_by_receiver @ name = None (6 calls)
4ms iterate_inherent_methods @ name = None (13 calls)
4ms impls_for_self_ty @ name = None (6 calls)
4ms is_valid_candidate (42 calls)
4ms is_valid_fn_candidate (42 calls)
4ms run_in_snapshot (42 calls)
2ms trait_solve::wait (72 calls)
2ms trait_solve_query @ detail = "SendSyncUnwindSafeDrain" (4 calls)
697ms iterate_trait_method_candidates @ name = None (13 calls)
2ms find_path_prefixed (9 calls)
495ms is_valid_candidate (13856 calls)
489ms is_valid_fn_candidate (11784 calls)
472ms run_in_snapshot (11784 calls)
2ms crate_def_map:wait (4115 calls)
10ms fill_with_inference_vars (23568 calls)
2ms generic_params_query (1332 calls)
11ms rollback_to (11784 calls)
189ms trait_solve::wait (1093 calls)
187ms trait_solve_query @ detail = "TryStreamExt" (771 calls)
17ms impl_datum (164 calls)
9ms parse_macro_expansion (270 calls)
7ms macro_expand (270 calls)
1ms parse_query @ file_id = FileId(12423)
2ms lang_item_query (2 calls)
2ms crate_lang_items_query (2 calls)
2ms collect_lang_item (480 calls)
3ms render_method (21 calls)
3ms body_with_source_map_query (8 calls)
2ms parse_query @ file_id = FileId(12438)
31ms iterate_method_candidates
31ms iterate_method_candidates_dyn @ with_local_impls = 31 traits_in_scope = 31 name = None
31ms iterate_method_candidates_dyn @ mode = MethodCall name = None traits_in_scope_len = 31
31ms iterate_method_candidates_with_autoref @ name = None (2 calls)
31ms iterate_method_candidates_by_receiver @ name = None (6 calls)
2ms iterate_inherent_methods @ name = None (13 calls)
2ms impls_for_self_ty @ name = None (6 calls)
1ms is_valid_candidate (42 calls)
1ms is_valid_fn_candidate (42 calls)
1ms run_in_snapshot (42 calls)
29ms iterate_trait_method_candidates @ name = None (13 calls)
26ms is_valid_candidate (801 calls)
26ms is_valid_fn_candidate (710 calls)
25ms run_in_snapshot (710 calls)
1ms render_method (6 calls)
1ms body_with_source_map_query (2 calls)
1ms parse_query @ file_id = FileId(12156) (2 calls)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment