MySQL 8.0.40
Source Code Documentation

Instrumentation metadata for a table share. More...

#include <pfs_instr_class.h>

Public Member Functions

uint32 get_version ()
 
enum_object_type get_object_type () const
 
void aggregate_io ()
 
void aggregate_lock ()
 
void sum_io (PFS_single_stat *result, uint key_count)
 
void sum_lock (PFS_single_stat *result)
 
void sum (PFS_single_stat *result, uint key_count)
 
void aggregate ()
 
void init_refcount ()
 
int get_refcount ()
 
void inc_refcount ()
 
void dec_refcount ()
 
void refresh_setup_object_flags (PFS_thread *thread)
 
PFS_table_share_lockfind_lock_stat () const
 Find an existing table share lock instrumentation. More...
 
PFS_table_share_lockfind_or_create_lock_stat ()
 Find or create a table share lock instrumentation. More...
 
void destroy_lock_stat ()
 Destroy a table share lock instrumentation. More...
 
PFS_table_share_indexfind_index_stat (uint index) const
 Find an existing table share index instrumentation. More...
 
PFS_table_share_indexfind_or_create_index_stat (const TABLE_SHARE *server_share, uint index)
 Find or create a table share index instrumentation. More...
 
void destroy_index_stats ()
 Destroy table share index instrumentation. More...
 

Public Attributes

pfs_lock m_lock
 Internal lock. More...
 
bool m_enabled
 True if table instrumentation is enabled. More...
 
bool m_timed
 True if table instrumentation is timed. More...
 
PFS_table_share_key m_key
 Search key. More...
 
uint m_key_count
 Number of indexes. More...
 
PFS_opaque_container_page * m_page
 Container page. More...
 

Private Attributes

std::atomic< int > m_refcount
 Number of opened table handles. More...
 
std::atomic< PFS_table_share_lock * > m_race_lock_stat
 Table locks statistics. More...
 
std::atomic< PFS_table_share_index * > m_race_index_stat [MAX_INDEXES+1]
 Table indexes stats. More...
 

Detailed Description

Instrumentation metadata for a table share.

Member Function Documentation

◆ aggregate()

void PFS_table_share::aggregate ( )
inline

◆ dec_refcount()

void PFS_table_share::dec_refcount ( )
inline

◆ get_object_type()

enum_object_type PFS_table_share::get_object_type ( ) const
inline

◆ get_refcount()

int PFS_table_share::get_refcount ( )
inline

◆ get_version()

uint32 PFS_table_share::get_version ( )
inline

◆ inc_refcount()

void PFS_table_share::inc_refcount ( )
inline

◆ init_refcount()

void PFS_table_share::init_refcount ( )
inline

Member Data Documentation

◆ m_enabled

bool PFS_table_share::m_enabled

True if table instrumentation is enabled.

This flag is computed from the content of table setup_objects.

◆ m_key

PFS_table_share_key PFS_table_share::m_key

Search key.

◆ m_key_count

uint PFS_table_share::m_key_count

Number of indexes.

◆ m_lock

pfs_lock PFS_table_share::m_lock

Internal lock.

◆ m_page

PFS_opaque_container_page* PFS_table_share::m_page

Container page.

◆ m_race_index_stat

std::atomic<PFS_table_share_index *> PFS_table_share::m_race_index_stat[MAX_INDEXES+1]
private

Table indexes stats.

◆ m_race_lock_stat

std::atomic<PFS_table_share_lock *> PFS_table_share::m_race_lock_stat
private

Table locks statistics.

◆ m_refcount

std::atomic<int> PFS_table_share::m_refcount
private

Number of opened table handles.

◆ m_timed

bool PFS_table_share::m_timed

True if table instrumentation is timed.

This flag is computed from the content of table setup_objects.


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