MySQL 8.0.39
Source Code Documentation
IteratorProfiler Class Referenceabstract

Profiling data for an iterator, needed by 'EXPLAIN ANALYZE'. More...

#include <row_iterator.h>

Inheritance diagram for IteratorProfiler:
[legend]

Public Member Functions

virtual double GetFirstRowMs () const =0
 Time (in ms) spent fetching the first row. More...
 
virtual double GetLastRowMs () const =0
 Time (in ms) spent fetching the remaining rows. More...
 
virtual uint64_t GetNumInitCalls () const =0
 The number of loops (i.e number of iterator->Init() calls. More...
 
virtual uint64_t GetNumRows () const =0
 The number of rows fetched. More...
 
virtual ~IteratorProfiler ()=default
 

Detailed Description

Profiling data for an iterator, needed by 'EXPLAIN ANALYZE'.

Note that an iterator may be iterated over multiple times, e.g. if it is the inner operand of a neste loop join. This is denoted 'loops' below, and the metrics in this class are aggregated values for all loops.

Constructor & Destructor Documentation

◆ ~IteratorProfiler()

virtual IteratorProfiler::~IteratorProfiler ( )
virtualdefault

Member Function Documentation

◆ GetFirstRowMs()

virtual double IteratorProfiler::GetFirstRowMs ( ) const
pure virtual

Time (in ms) spent fetching the first row.

(Sum for all loops.)

Implemented in DummyIteratorProfiler, and IteratorProfilerImpl.

◆ GetLastRowMs()

virtual double IteratorProfiler::GetLastRowMs ( ) const
pure virtual

Time (in ms) spent fetching the remaining rows.

(Sum for all loops.)

Implemented in DummyIteratorProfiler, and IteratorProfilerImpl.

◆ GetNumInitCalls()

virtual uint64_t IteratorProfiler::GetNumInitCalls ( ) const
pure virtual

The number of loops (i.e number of iterator->Init() calls.

Implemented in DummyIteratorProfiler, and IteratorProfilerImpl.

◆ GetNumRows()

virtual uint64_t IteratorProfiler::GetNumRows ( ) const
pure virtual

The number of rows fetched.

(Sum for all loops.)

Implemented in DummyIteratorProfiler, and IteratorProfilerImpl.


The documentation for this class was generated from the following file: