MySQL 8.4.2
Source Code Documentation
TraceSpan Class Reference

Events of a command. More...

#include <trace_span.h>

Public Member Functions

bool active () const
 
void active (bool v)
 
std::chrono::system_clock::time_point start_system_time_point () const
 
std::chrono::steady_clock::time_point start_time_point () const
 
const std::list< TraceEvent > & events () const
 
std::list< TraceEvent > & events ()
 
void clear ()
 
bool empty () const
 
 operator bool () const
 

Private Attributes

std::list< TraceEventevents_
 
std::chrono::system_clock::time_point start_system_time_point_
 
std::chrono::steady_clock::time_point start_time_point_
 
bool active_ {false}
 

Detailed Description

Events of a command.

Member Function Documentation

◆ active() [1/2]

bool TraceSpan::active ( ) const
inline

◆ active() [2/2]

void TraceSpan::active ( bool  v)
inline

◆ clear()

void TraceSpan::clear ( )
inline

◆ empty()

bool TraceSpan::empty ( ) const
inline

◆ events() [1/2]

std::list< TraceEvent > & TraceSpan::events ( )
inline

◆ events() [2/2]

const std::list< TraceEvent > & TraceSpan::events ( ) const
inline

◆ operator bool()

TraceSpan::operator bool ( ) const
inline

◆ start_system_time_point()

std::chrono::system_clock::time_point TraceSpan::start_system_time_point ( ) const
inline

◆ start_time_point()

std::chrono::steady_clock::time_point TraceSpan::start_time_point ( ) const
inline

Member Data Documentation

◆ active_

bool TraceSpan::active_ {false}
private

◆ events_

std::list<TraceEvent> TraceSpan::events_
private

◆ start_system_time_point_

std::chrono::system_clock::time_point TraceSpan::start_system_time_point_
private
Initial value:
{
std::chrono::system_clock::now()}

◆ start_time_point_

std::chrono::steady_clock::time_point TraceSpan::start_time_point_
private
Initial value:
{
std::chrono::steady_clock::now()}

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