Skip to content

Instantly share code, notes, and snippets.

@matklad

matklad/gotodef Secret

Created Feb 16, 2020
Embed
What would you like to do?
λ env RA_PROFILE='*>10' cargo run --release -p ra_cli analysis-bench --path ~/projects/rustraytracer/ --goto-def ~/projects/rustraytracer/src/rendering/mod.rs:120:44 -v
Finished release [optimized] target(s) in 0.06s
Running `target/release/ra_cli analysis-bench --path /home/matklad/projects/rustraytracer/ --goto-def '/home/matklad/projects/rustraytracer/src/rendering/mod.rs:120:44' -v`
loading: 87.051124ms
from scratch: 8898ms - SourceBinder::analyzer
3802ms - SourceBinder::to_module_def
3802ms - crate_def_map
3802ms - compute_crate_def_map
3800ms - crate_def_map
3800ms - compute_crate_def_map
1150ms - crate_def_map
1150ms - compute_crate_def_map
16ms - raw_items_query
13ms - parse_query
23ms - raw_items_query
19ms - parse_query
13ms - raw_items_query
11ms - parse_query
27ms - raw_items_query
24ms - parse_query
14ms - raw_items_query
11ms - parse_macro_query
13ms - raw_items_query
11ms - parse_macro_query
11ms - raw_items_query
11ms - parse_macro_query
10ms - parse_macro_query (1 calls)
12ms - raw_items_query
12ms - parse_macro_query
12ms - parse_macro_query
12ms - parse_macro_query
0ms - enum_data_query (7 calls)
1000ms - raw_items_query (3893 calls)
16ms - ???
133ms - crate_def_map
133ms - compute_crate_def_map
14ms - raw_items_query
12ms - parse_query
12ms - raw_items_query
10ms - parse_query (1 calls)
11ms - raw_items_query
9ms - parse_query (1 calls)
0ms - crate_def_map (868 calls)
0ms - enum_data_query (9 calls)
92ms - raw_items_query (93 calls)
359ms - crate_def_map
359ms - compute_crate_def_map
14ms - raw_items_query
12ms - parse_query
13ms - raw_items_query
11ms - parse_query
13ms - raw_items_query
11ms - parse_query
14ms - raw_items_query
12ms - parse_query
0ms - crate_def_map (562 calls)
1ms - enum_data_query (12 calls)
294ms - raw_items_query (390 calls)
1394ms - crate_def_map
1394ms - compute_crate_def_map
1215ms - crate_def_map
1215ms - compute_crate_def_map
61ms - crate_def_map
61ms - compute_crate_def_map
23ms - crate_def_map
23ms - compute_crate_def_map
0ms - crate_def_map (84 calls)
23ms - raw_items_query (71 calls)
0ms - crate_def_map (151 calls)
37ms - raw_items_query (148 calls)
72ms - crate_def_map
72ms - compute_crate_def_map
12ms - crate_def_map
12ms - compute_crate_def_map
0ms - crate_def_map (97 calls)
11ms - raw_items_query (92 calls)
13ms - raw_items_query
12ms - parse_macro_query
0ms - crate_def_map (193 calls)
44ms - raw_items_query (161 calls)
98ms - crate_def_map
98ms - compute_crate_def_map
11ms - raw_items_query
9ms - parse_query (1 calls)
0ms - crate_def_map (316 calls)
80ms - raw_items_query (304 calls)
39ms - crate_def_map
39ms - compute_crate_def_map
27ms - crate_def_map
27ms - compute_crate_def_map
22ms - crate_def_map
22ms - compute_crate_def_map
8ms - crate_def_map (71 calls)
0ms - enum_data_query (4 calls)
14ms - raw_items_query (48 calls)
0ms - crate_def_map (33 calls)
0ms - enum_data_query (1 calls)
4ms - raw_items_query (19 calls)
8ms - crate_def_map (20 calls)
3ms - raw_items_query (5 calls)
773ms - crate_def_map
773ms - compute_crate_def_map
41ms - raw_items_query
32ms - parse_query
1ms - crate_def_map (2325 calls)
703ms - raw_items_query (2317 calls)
26ms - ???
20ms - crate_def_map (517 calls)
0ms - enum_data_query (2 calls)
144ms - raw_items_query (331 calls)
104ms - crate_def_map
104ms - compute_crate_def_map
27ms - raw_items_query
23ms - parse_query
0ms - crate_def_map (179 calls)
0ms - enum_data_query (12 calls)
75ms - raw_items_query (122 calls)
61ms - crate_def_map
61ms - compute_crate_def_map
58ms - crate_def_map
58ms - compute_crate_def_map
24ms - crate_def_map
24ms - compute_crate_def_map
0ms - crate_def_map (78 calls)
23ms - raw_items_query (44 calls)
0ms - crate_def_map (102 calls)
0ms - enum_data_query (1 calls)
32ms - raw_items_query (47 calls)
0ms - crate_def_map (15 calls)
2ms - raw_items_query (4 calls)
0ms - crate_def_map (85 calls)
12ms - raw_items_query (31 calls)
278ms - crate_def_map
278ms - compute_crate_def_map
65ms - crate_def_map
65ms - compute_crate_def_map
59ms - crate_def_map
59ms - compute_crate_def_map
22ms - crate_def_map
22ms - compute_crate_def_map
1ms - crate_def_map (110 calls)
20ms - raw_items_query (75 calls)
14ms - crate_def_map (126 calls)
21ms - raw_items_query (35 calls)
0ms - crate_def_map (42 calls)
6ms - raw_items_query (8 calls)
29ms - crate_def_map
29ms - compute_crate_def_map
2ms - crate_def_map (181 calls)
0ms - enum_data_query (1 calls)
25ms - raw_items_query (53 calls)
17ms - raw_items_query
14ms - parse_query
5ms - crate_def_map (536 calls)
154ms - raw_items_query (264 calls)
469ms - crate_def_map
469ms - compute_crate_def_map
30ms - crate_def_map
30ms - compute_crate_def_map
12ms - crate_def_map
12ms - compute_crate_def_map
1ms - crate_def_map (28 calls)
10ms - raw_items_query (12 calls)
0ms - crate_def_map (52 calls)
17ms - raw_items_query (32 calls)
317ms - crate_def_map
317ms - compute_crate_def_map
13ms - crate_def_map
13ms - compute_crate_def_map
0ms - crate_def_map (16 calls)
13ms - raw_items_query (9 calls)
27ms - raw_items_query
24ms - parse_query
11ms - raw_items_query
9ms - parse_query (1 calls)
14ms - raw_items_query
12ms - parse_query
15ms - raw_items_query
13ms - parse_query
22ms - raw_items_query
19ms - parse_query
39ms - raw_items_query
35ms - parse_query
0ms - crate_def_map (690 calls)
167ms - raw_items_query (624 calls)
11ms - raw_items_query
9ms - parse_query (1 calls)
12ms - crate_def_map (324 calls)
94ms - raw_items_query (211 calls)
0ms - crate_def_map (113 calls)
13ms - raw_items_query (42 calls)
0ms - crate_def_map (24 calls)
1ms - raw_items_query (2 calls)
0ms - crate_def_map (1 calls)
5096ms - infer
5096ms - do_infer
14ms - parse_macro_query
1ms - parse_query (1 calls)
12ms - ???
18ms - parse_query
27ms - parse_query
13ms - parse_query
23ms - parse_query
12ms - parse_macro_query
0ms - parse_query (1 calls)
11ms - ???
1196ms - impls_in_crate_query
12ms - parse_macro_query
12ms - parse_macro_query
12ms - parse_macro_query
19ms - parse_query
14ms - parse_macro_query
3ms - crate_def_map (19472 calls)
896ms - parse_macro_query (5077 calls)
24ms - parse_query (18 calls)
212ms - ???
162ms - impls_in_crate_query
13ms - parse_query
11ms - parse_query
14ms - parse_query
0ms - crate_def_map (4037 calls)
15ms - parse_macro_query (72 calls)
76ms - parse_query (15 calls)
30ms - ???
321ms - impls_in_crate_query
15ms - parse_query
16ms - parse_query
12ms - parse_query
12ms - parse_query
0ms - crate_def_map (4230 calls)
61ms - parse_macro_query (305 calls)
161ms - parse_query (53 calls)
40ms - ???
22ms - impls_in_crate_query
0ms - crate_def_map (939 calls)
18ms - parse_macro_query (56 calls)
33ms - impls_in_crate_query
0ms - crate_def_map (1064 calls)
28ms - parse_macro_query (146 calls)
57ms - impls_in_crate_query
16ms - parse_macro_query
1ms - parse_macro_query (1 calls)
14ms - ???
0ms - crate_def_map (1646 calls)
22ms - parse_macro_query (137 calls)
11ms - parse_query (10 calls)
105ms - impls_in_crate_query
25ms - parse_macro_query
18ms - parse_query
11ms - parse_macro_query
6ms - parse_query (1 calls)
0ms - crate_def_map (1252 calls)
53ms - parse_macro_query (144 calls)
14ms - ???
18ms - impls_in_crate_query
0ms - crate_def_map (473 calls)
5ms - parse_macro_query (45 calls)
10ms - parse_query (2 calls)
11ms - impls_in_crate_query
0ms - crate_def_map (155 calls)
2ms - parse_macro_query (8 calls)
8ms - parse_query (3 calls)
564ms - impls_in_crate_query
40ms - parse_macro_query
40ms - parse_query
2ms - crate_def_map (8341 calls)
455ms - parse_macro_query (1227 calls)
65ms - ???
163ms - impls_in_crate_query
0ms - crate_def_map (2776 calls)
78ms - parse_macro_query (287 calls)
54ms - parse_query (32 calls)
29ms - ???
130ms - impls_in_crate_query
31ms - parse_query
0ms - crate_def_map (1488 calls)
66ms - parse_macro_query (113 calls)
16ms - parse_query (4 calls)
15ms - ???
16ms - impls_in_crate_query
0ms - crate_def_map (342 calls)
5ms - parse_macro_query (27 calls)
5ms - parse_query (6 calls)
33ms - impls_in_crate_query
0ms - crate_def_map (507 calls)
6ms - parse_macro_query (42 calls)
22ms - parse_query (4 calls)
17ms - impls_in_crate_query
0ms - crate_def_map (465 calls)
1ms - parse_macro_query (19 calls)
10ms - parse_query (11 calls)
27ms - impls_in_crate_query
0ms - crate_def_map (650 calls)
10ms - parse_macro_query (64 calls)
11ms - parse_query (5 calls)
22ms - impls_in_crate_query
0ms - crate_def_map (521 calls)
2ms - parse_macro_query (17 calls)
16ms - parse_query (9 calls)
22ms - impls_in_crate_query
0ms - crate_def_map (425 calls)
3ms - parse_macro_query (22 calls)
14ms - parse_query (11 calls)
133ms - impls_in_crate_query
0ms - crate_def_map (3390 calls)
27ms - parse_macro_query (187 calls)
79ms - parse_query (63 calls)
26ms - ???
16ms - impls_in_crate_query
0ms - crate_def_map (363 calls)
3ms - parse_macro_query (29 calls)
11ms - parse_query (3 calls)
160ms - impls_in_crate_query
31ms - parse_query
12ms - parse_query
18ms - parse_query
0ms - crate_def_map (3014 calls)
43ms - parse_macro_query (337 calls)
35ms - parse_query (10 calls)
18ms - ???
114ms - impls_in_crate_query
12ms - parse_query
0ms - crate_def_map (2038 calls)
34ms - parse_macro_query (176 calls)
50ms - parse_query (15 calls)
16ms - ???
18ms - impls_in_crate_query
0ms - crate_def_map (453 calls)
2ms - parse_macro_query (26 calls)
10ms - parse_query (14 calls)
149ms - trait_solve_query
16ms - impl_datum
16ms - parse_query
0ms - crate_def_map (1 calls)
14ms - impl_datum
14ms - parse_query
0ms - crate_def_map (1 calls)
0ms - crate_def_map (65 calls)
116ms - impl_datum (43 calls)
17ms - parse_query
15ms - parse_query
14ms - parse_query
23ms - parse_query
254ms - trait_solve_query
13ms - impl_datum
13ms - parse_query
0ms - crate_def_map (1 calls)
13ms - impl_datum
13ms - parse_query
0ms - crate_def_map (1 calls)
17ms - impl_datum
17ms - parse_query
0ms - crate_def_map (5 calls)
14ms - impl_datum
14ms - parse_query
0ms - crate_def_map (1 calls)
12ms - impl_datum
12ms - parse_query
0ms - crate_def_map (1 calls)
23ms - impl_datum
23ms - parse_query
0ms - crate_def_map (4 calls)
0ms - crate_def_map (2 calls)
157ms - impl_datum (213 calls)
0ms - crate_def_map (321 calls)
92ms - impls_in_crate_query (27 calls)
701ms - parse_macro_query (2741 calls)
218ms - parse_query (108 calls)
4ms - trait_solve_query (19 calls)
121ms - ???
0ms - body_with_source_map_query (1 calls)
0ms - crate_def_map (3 calls)
8.923716212s
no change: 494.348µs
trivial change: 6.641198ms
comment change: 10.317628ms
const change: 94ms - SourceBinder::analyzer
31ms - SourceBinder::to_module_def
31ms - crate_def_map
0ms - crate_def_map (1 calls)
62ms - infer
6ms - trait_solve_query (17 calls)
55ms - ???
0ms - crate_def_map (2 calls)
95.023015ms
Ok(
Some(
RangeInfo {
range: [3840; 3850),
info: [
NavigationTarget {
file_id: FileId(
1428,
),
name: "illuminate",
kind: FN_DEF,
full_range: [312; 598),
focus_range: Some(
[319; 329),
),
container_name: None,
description: Some(
"pub fn illuminate(&self, p: Point) -> Color",
),
docs: None,
},
],
},
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment