MySQL 8.0.40
Source Code Documentation
QUERY_PROFILE Class Reference

The full profile for a single query, and includes multiple PROF_MEASUREMENT objects. More...

#include <sql_profile.h>

Private Member Functions

 QUERY_PROFILE (PROFILING *profiling_arg, const char *status_arg)
 
 ~QUERY_PROFILE ()
 
void set_query_source (const char *query_source_arg, size_t query_length_arg)
 
void new_status (const char *status_arg, const char *function_arg, const char *file_arg, unsigned int line_arg)
 

Private Attributes

PROFILINGprofiling
 
query_id_t profiling_query_id
 
LEX_STRING m_query_source
 
double m_start_time_usecs
 
double m_end_time_usecs
 
ulong m_seq_counter
 
Queue< PROF_MEASUREMENTentries
 

Friends

class PROFILING
 

Detailed Description

The full profile for a single query, and includes multiple PROF_MEASUREMENT objects.

Constructor & Destructor Documentation

◆ QUERY_PROFILE()

QUERY_PROFILE::QUERY_PROFILE ( PROFILING profiling_arg,
const char *  status_arg 
)
private

◆ ~QUERY_PROFILE()

QUERY_PROFILE::~QUERY_PROFILE ( )
private

Member Function Documentation

◆ new_status()

void QUERY_PROFILE::new_status ( const char *  status_arg,
const char *  function_arg,
const char *  file_arg,
unsigned int  line_arg 
)
private

◆ set_query_source()

void QUERY_PROFILE::set_query_source ( const char *  query_source_arg,
size_t  query_length_arg 
)
private

Friends And Related Function Documentation

◆ PROFILING

friend class PROFILING
friend

Member Data Documentation

◆ entries

Queue<PROF_MEASUREMENT> QUERY_PROFILE::entries
private

◆ m_end_time_usecs

double QUERY_PROFILE::m_end_time_usecs
private

◆ m_query_source

LEX_STRING QUERY_PROFILE::m_query_source
private

◆ m_seq_counter

ulong QUERY_PROFILE::m_seq_counter
private

◆ m_start_time_usecs

double QUERY_PROFILE::m_start_time_usecs
private

◆ profiling

PROFILING* QUERY_PROFILE::profiling
private

◆ profiling_query_id

query_id_t QUERY_PROFILE::profiling_query_id
private

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