MySQL 8.0.33
Source Code Documentation
temptable::Key_value_store_logger< T, true > Class Template Reference

Key_value_store logging facility debug builds only. More...

#include <kv_store_logger.h>

Public Member Functions

std::vector< Key_value_store_statsstats ()
 Returns a snapshot of stats collected. More...
 

Protected Member Functions

void log (Key_value_store_stats::Event event)
 Appends a new entry to stats container with the given event. More...
 
void dbug_print ()
 DBUG_PRINT's the stats of underlying key-value store implementation. More...
 

Private Attributes

std::vector< Key_value_store_statsm_stats
 Container of stats that we will be collecting. More...
 

Detailed Description

template<typename T>
class temptable::Key_value_store_logger< T, true >

Key_value_store logging facility debug builds only.

Member Function Documentation

◆ dbug_print()

template<typename T >
void temptable::Key_value_store_logger< T, true >::dbug_print ( )
inlineprotected

DBUG_PRINT's the stats of underlying key-value store implementation.

◆ log()

template<typename T >
void temptable::Key_value_store_logger< T, true >::log ( Key_value_store_stats::Event  event)
inlineprotected

Appends a new entry to stats container with the given event.

[in] event Type of event to be logged.

◆ stats()

template<typename T >
std::vector< Key_value_store_stats > temptable::Key_value_store_logger< T, true >::stats ( )
inline

Returns a snapshot of stats collected.

To keep up with the thread-safety guarantee promise, snapshot must be made under the lock.

Returns
Stats snapshot.

Member Data Documentation

◆ m_stats

template<typename T >
std::vector<Key_value_store_stats> temptable::Key_value_store_logger< T, true >::m_stats
private

Container of stats that we will be collecting.


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