HappenLee opened a new pull request, #62717:
URL: https://github.com/apache/doris/pull/62717

      ### What problem does this PR solve?
   
       Issue Number: N/A
   
       Problem Summary:
       The OLAP scanner profile timers were registered as a flat list, making
       it hard to understand parent-child timing relationships. This change:
   
       1. Converts all relevant timers to use ADD_CHILD_TIMER so the profile
          renders as a tree reflecting actual call containment:
          - ReaderInitTime → TabletReaderInitTimer → (TabletReader* + 
BlockReader* sub-timers)
          - ScannerGetBlockTime → RowsetReaderGetSegmentIteratorsTimer → 
(DeleteBitmapGetAggTime, RowsetReaderCreateIteratorsTimer)
          - ScannerGetBlockTime → BlockFetchTime → SegmentIteratorInitTimer → 
(SegmentIterator* + Segment* sub-timers)
   
       2. Fixes TabletReaderInitTimer inaccuracy: removes the SCOPED_RAW_TIMER
          wrapper in TabletReader::init() (which double-counted overhead) and
          instead computes the value as the sum of its sub-timers in
          olap_scanner.cpp.
   
       3. Adds missing COUNTER_UPDATE for 
SegmentIteratorInitSegmentPrefetchersTimer
          which was tracked in stats but never reported to the profile.
   
       ### Release note
   
       Profile timers for OLAP scanner are now displayed as a tree hierarchy
       showing containment relationships between init and scan phases.
   
       ### Check List (For Author)
   
       - Test: Manual test (profile structure verified via code review)
           - No functional behavior changed, only profile display structure
       - Behavior changed: No
       - Does this need documentation: No


-- 
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