MySQL 9.1.0
Source Code Documentation
anonymous_namespace{composite_iterators.cc}::DummyIteratorProfiler Class Referencefinal

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

Inheritance diagram for anonymous_namespace{composite_iterators.cc}::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 anonymous_namespace{composite_iterators.cc}::DummyIteratorProfiler::GetFirstRowMs ( ) const
inlineoverridevirtual

Time (in ms) spent fetching the first row.

(Sum for all loops.)

Implements IteratorProfiler.

◆ GetLastRowMs()

double anonymous_namespace{composite_iterators.cc}::DummyIteratorProfiler::GetLastRowMs ( ) const
inlineoverridevirtual

Time (in ms) spent fetching the remaining rows.

(Sum for all loops.)

Implements IteratorProfiler.

◆ GetNumInitCalls()

uint64_t anonymous_namespace{composite_iterators.cc}::DummyIteratorProfiler::GetNumInitCalls ( ) const
inlineoverridevirtual

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

Implements IteratorProfiler.

◆ GetNumRows()

uint64_t anonymous_namespace{composite_iterators.cc}::DummyIteratorProfiler::GetNumRows ( ) const
inlineoverridevirtual

The number of rows fetched.

(Sum for all loops.)

Implements IteratorProfiler.

◆ IncrementNumRows()

void anonymous_namespace{composite_iterators.cc}::DummyIteratorProfiler::IncrementNumRows ( uint64_t  materialized_rows)
inline

◆ Now()

static TimeStamp anonymous_namespace{composite_iterators.cc}::DummyIteratorProfiler::Now ( )
inlinestatic

◆ StopInit()

void anonymous_namespace{composite_iterators.cc}::DummyIteratorProfiler::StopInit ( TimeStamp  start_time)
inline

◆ StopRead()

void anonymous_namespace{composite_iterators.cc}::DummyIteratorProfiler::StopRead ( TimeStamp  start_time,
bool  read_ok 
)
inline

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