github-actions[bot] commented on code in PR #62717:
URL: https://github.com/apache/doris/pull/62717#discussion_r3144625210


##########
be/src/exec/scan/olap_scanner.cpp:
##########
@@ -837,7 +837,17 @@ void OlapScanner::_collect_profile_before_close() {
     COUNTER_UPDATE(local_state->_condition_cache_filtered_rows_counter,
                    stats.condition_cache_filtered_rows);
 
-    COUNTER_UPDATE(local_state->_tablet_reader_init_timer, 
stats.tablet_reader_init_timer_ns);
+    const int64_t tablet_reader_init_timer_ns =

Review Comment:
   `TabletReaderInitTimer` stops being an actual init-scope timer here. 
`BlockReader::init()` still does untimed work after 
`TabletReader::init(read_params)` returns: it builds `_return_columns_loc` / 
`pos_map`, handles seq-map bookkeeping, chooses `_next_block_func`, and for 
`AGG_KEYS` runs `_init_agg_state()` 
(`be/src/storage/iterator/block_reader.cpp:207-312`). None of that is in this 
sum, so wide-table or `AGG_KEYS` scans will under-report reader init and leave 
the missing time as an unexplained gap between `ReaderInitTime` and 
`TabletReaderInitTimer`. If we want this node to represent the real parent 
phase, it still needs a real scope timer around the full init path or child 
timers for the currently-untimed pieces.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to