MySQL 9.1.0
Source Code Documentation
PFS_instrumentation_handle_raii Class Reference

RAII class to manage PFS statement instrumentation for statement executed using Statement Handle interface. More...

Public Member Functions

 PFS_instrumentation_handle_raii (THD *thd, std::string *new_query, PSI_statement_info *psi_info)
 
 ~PFS_instrumentation_handle_raii ()
 

Private Attributes

THDm_thd {nullptr}
 
LEX_CSTRING m_saved_query_string
 
String m_saved_rewritten_query
 
bool m_saved_safe_to_display {false}
 
PSI_statement_locker_state m_psi_state
 
PSI_statement_lockerm_saved_parent_statement_psi {nullptr}
 
sql_digest_state m_digest
 
sql_digest_statem_saved_parent_digest {nullptr}
 

Detailed Description

RAII class to manage PFS statement instrumentation for statement executed using Statement Handle interface.

This class mainly manages setting query text of statement being executed for PFS instrumentation and starts the PFS statement instrumentation. In the destructor of this RAII class, reset query text (i.e. set query text of parent query) ands end the PFS statement instrumentation.

Constructor & Destructor Documentation

◆ PFS_instrumentation_handle_raii()

PFS_instrumentation_handle_raii::PFS_instrumentation_handle_raii ( THD thd,
std::string *  new_query,
PSI_statement_info psi_info 
)
inline

◆ ~PFS_instrumentation_handle_raii()

PFS_instrumentation_handle_raii::~PFS_instrumentation_handle_raii ( )
inline

Member Data Documentation

◆ m_digest

sql_digest_state PFS_instrumentation_handle_raii::m_digest
private

◆ m_psi_state

PSI_statement_locker_state PFS_instrumentation_handle_raii::m_psi_state
private

◆ m_saved_parent_digest

sql_digest_state* PFS_instrumentation_handle_raii::m_saved_parent_digest {nullptr}
private

◆ m_saved_parent_statement_psi

PSI_statement_locker* PFS_instrumentation_handle_raii::m_saved_parent_statement_psi {nullptr}
private

◆ m_saved_query_string

LEX_CSTRING PFS_instrumentation_handle_raii::m_saved_query_string
private

◆ m_saved_rewritten_query

String PFS_instrumentation_handle_raii::m_saved_rewritten_query
private

◆ m_saved_safe_to_display

bool PFS_instrumentation_handle_raii::m_saved_safe_to_display {false}
private

◆ m_thd

THD* PFS_instrumentation_handle_raii::m_thd {nullptr}
private

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