MySQL 9.1.0
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_lock * | find_lock_stat () const |
Find an existing table share lock instrumentation. More... | |
PFS_table_share_lock * | find_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_index * | find_index_stat (uint index) const |
Find an existing table share index instrumentation. More... | |
PFS_table_share_index * | find_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... | |
Instrumentation metadata for a table share.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool PFS_table_share::m_enabled |
True if table instrumentation is enabled.
This flag is computed from the content of table setup_objects.
PFS_table_share_key PFS_table_share::m_key |
Search key.
uint PFS_table_share::m_key_count |
Number of indexes.
pfs_lock PFS_table_share::m_lock |
Internal lock.
PFS_opaque_container_page* PFS_table_share::m_page |
Container page.
|
private |
Table indexes stats.
|
private |
Table locks statistics.
|
private |
Number of opened table handles.
bool PFS_table_share::m_timed |
True if table instrumentation is timed.
This flag is computed from the content of table setup_objects.