Skip to content

Commit f91a0f3

Browse files
summarize: Make incr-cache-loading and query-blocking contribute to self-time of query.
1 parent 645025b commit f91a0f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

summarize/src/analysis.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ pub fn perform_analysis(data: ProfilingData) -> Results {
175175
data.self_time -= current_event_duration;
176176
}
177177
INCREMENTAL_LOAD_RESULT_EVENT_KIND => {
178+
data.self_time -= current_event_duration;
178179
data.incremental_load_time -= current_event_duration;
179180
}
180181
_ => {
@@ -200,12 +201,14 @@ pub fn perform_analysis(data: ProfilingData) -> Results {
200201

201202
QUERY_BLOCKED_EVENT_KIND => {
202203
record_event_data(&current_event.label, &|data| {
204+
data.self_time += current_event_duration;
203205
data.blocked_time += current_event_duration;
204206
});
205207
}
206208

207209
INCREMENTAL_LOAD_RESULT_EVENT_KIND => {
208210
record_event_data(&current_event.label, &|data| {
211+
data.self_time += current_event_duration;
209212
data.incremental_load_time += current_event_duration;
210213
});
211214
}

0 commit comments

Comments
 (0)