File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ pub struct QueryData {
9
9
pub number_of_cache_misses : usize ,
10
10
pub number_of_cache_hits : usize ,
11
11
pub blocked_time : Duration ,
12
+ pub incremental_load_time : Duration ,
12
13
}
13
14
14
15
impl QueryData {
@@ -19,6 +20,7 @@ impl QueryData {
19
20
number_of_cache_misses : 0 ,
20
21
number_of_cache_hits : 0 ,
21
22
blocked_time : Duration :: from_nanos ( 0 ) ,
23
+ incremental_load_time : Duration :: from_nanos ( 0 ) ,
22
24
}
23
25
}
24
26
}
@@ -108,6 +110,10 @@ pub fn perform_analysis(data: ProfilingData) -> Results {
108
110
record_event_data ( & event. label , & |data| {
109
111
data. blocked_time += duration;
110
112
} ) ;
113
+ } else if & event. event_kind [ ..] == "IncrementalLoadResult" {
114
+ record_event_data ( & event. label , & |data| {
115
+ data. incremental_load_time += duration;
116
+ } ) ;
111
117
}
112
118
}
113
119
}
Original file line number Diff line number Diff line change @@ -21,16 +21,17 @@ fn main() {
21
21
results. query_data . sort_by ( |l, r| r. self_time . cmp ( & l. self_time ) ) ;
22
22
23
23
println ! ( "| Item | Self Time | % of total time | Number of invocations \
24
- | Cache hits | Blocked time |") ;
24
+ | Cache hits | Blocked time | Incremental load time | ") ;
25
25
26
26
for query_data in results. query_data {
27
27
println ! (
28
- "{} | {:?} | {} | {} | {:?} |" ,
28
+ "| {} | {:?} | {} | {} | {:? } | {:?} |" ,
29
29
query_data. label,
30
30
query_data. self_time,
31
31
query_data. number_of_cache_hits + query_data. number_of_cache_misses,
32
32
query_data. number_of_cache_hits,
33
33
query_data. blocked_time,
34
+ query_data. incremental_load_time,
34
35
) ;
35
36
}
36
37
You can’t perform that action at this time.
0 commit comments