MySQL 8.0.39
Source Code Documentation
DummyIteratorProfiler Class Referencefinal

This is a no-op class with a public interface identical to that of the IteratorProfilerImpl class. More...

Inheritance diagram for DummyIteratorProfiler:
[legend]

Classes

struct  TimeStamp
 

Public Member Functions

double GetFirstRowMs () const override
 Time (in ms) spent fetching the first row. More...
 
double GetLastRowMs () const override
 Time (in ms) spent fetching the remaining rows. More...
 
uint64_t GetNumInitCalls () const override
 The number of loops (i.e number of iterator->Init() calls. More...
 
uint64_t GetNumRows () const override
 The number of rows fetched. More...
 
void StopInit (TimeStamp start_time)
 
void IncrementNumRows (uint64_t materialized_rows)
 
void StopRead (TimeStamp start_time, bool read_ok)
 
- Public Member Functions inherited from IteratorProfiler
virtual ~IteratorProfiler ()=default
 

Static Public Member Functions

static TimeStamp Now ()
 

Detailed Description

This is a no-op class with a public interface identical to that of the IteratorProfilerImpl class.

This allows iterators with internal time keeping (such as MaterializeIterator) to use the same code whether time keeping is enabled or not. And all the mutators are inlinable no-ops, so that there should be no runtime overhead.

Member Function Documentation

◆ GetFirstRowMs()

double DummyIteratorProfiler::GetFirstRowMs ( ) const
inlineoverridevirtual

Time (in ms) spent fetching the first row.

(Sum for all loops.)

Implements IteratorProfiler.

◆ GetLastRowMs()

double DummyIteratorProfiler::GetLastRowMs ( ) const
inlineoverridevirtual

Time (in ms) spent fetching the remaining rows.

(Sum for all loops.)

Implements IteratorProfiler.

◆ GetNumInitCalls()

uint64_t DummyIteratorProfiler::GetNumInitCalls ( ) const
inlineoverridevirtual

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

Implements IteratorProfiler.

◆ GetNumRows()

uint64_t DummyIteratorProfiler::GetNumRows ( ) const
inlineoverridevirtual

The number of rows fetched.

(Sum for all loops.)

Implements IteratorProfiler.

◆ IncrementNumRows()

void DummyIteratorProfiler::IncrementNumRows ( uint64_t  materialized_rows)
inline

◆ Now()

static TimeStamp DummyIteratorProfiler::Now ( )
inlinestatic

◆ StopInit()

void DummyIteratorProfiler::StopInit ( TimeStamp  start_time)
inline

◆ StopRead()

void DummyIteratorProfiler::StopRead ( TimeStamp  start_time,
bool  read_ok 
)
inline

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