MySQL 9.1.0
Source Code Documentation

Instrumented table implementation. More...

#include <pfs_instr.h>

Public Member Functions

void aggregate (const TABLE_SHARE *server_share)
 Aggregate this table handle statistics to the parents. More...
 
void sanitized_aggregate ()
 Aggregate this table handle statistics to the parents. More...
 
void sanitized_aggregate_io ()
 Aggregate this table handle I/O statistics to the parents. More...
 
void sanitized_aggregate_lock ()
 Aggregate this table handle lock statistics to the parents. More...
 

Public Attributes

bool m_io_enabled
 True if table I/O instrumentation is enabled. More...
 
bool m_lock_enabled
 True if table lock instrumentation is enabled. More...
 
bool m_io_timed
 True if table I/O instrumentation is timed. More...
 
bool m_lock_timed
 True if table lock instrumentation is timed. More...
 
bool m_has_io_stats
 True if table I/O statistics have been collected. More...
 
bool m_has_lock_stats
 True if table lock statistics have been collected. More...
 
pfs_lock m_lock
 Internal lock. More...
 
PFS_threadm_thread_owner
 Thread Owner. More...
 
ulonglong m_owner_event_id
 Event Owner. More...
 
PFS_table_sharem_share
 Table share. More...
 
const void * m_identity
 Table identity, typically a handler. More...
 
PFS_table_stat m_table_stat
 Table statistics. More...
 
PFS_TL_LOCK_TYPE m_internal_lock
 Current internal lock. More...
 
PFS_TL_LOCK_TYPE m_external_lock
 Current external lock. More...
 
PFS_opaque_container_page * m_page
 Container page. More...
 

Static Private Member Functions

static void safe_aggregate_io (const TABLE_SHARE *optional_server_share, PFS_table_stat *stat, PFS_table_share *table_share)
 
static void safe_aggregate_lock (PFS_table_stat *stat, PFS_table_share *table_share)
 

Detailed Description

Instrumented table implementation.

See also
PSI_table.

Member Function Documentation

◆ aggregate()

void PFS_table::aggregate ( const TABLE_SHARE server_share)
inline

Aggregate this table handle statistics to the parents.

Only use this method for handles owned by the calling code.

See also
sanitized_aggregate.

Member Data Documentation

◆ m_external_lock

PFS_TL_LOCK_TYPE PFS_table::m_external_lock

Current external lock.

◆ m_has_io_stats

bool PFS_table::m_has_io_stats

True if table I/O statistics have been collected.

◆ m_has_lock_stats

bool PFS_table::m_has_lock_stats

True if table lock statistics have been collected.

◆ m_identity

const void* PFS_table::m_identity

Table identity, typically a handler.

◆ m_internal_lock

PFS_TL_LOCK_TYPE PFS_table::m_internal_lock

Current internal lock.

◆ m_io_enabled

bool PFS_table::m_io_enabled

True if table I/O instrumentation is enabled.

This flag is computed.

◆ m_io_timed

bool PFS_table::m_io_timed

True if table I/O instrumentation is timed.

This flag is computed.

◆ m_lock

pfs_lock PFS_table::m_lock

Internal lock.

◆ m_lock_enabled

bool PFS_table::m_lock_enabled

True if table lock instrumentation is enabled.

This flag is computed.

◆ m_lock_timed

bool PFS_table::m_lock_timed

True if table lock instrumentation is timed.

This flag is computed.

◆ m_owner_event_id

ulonglong PFS_table::m_owner_event_id

Event Owner.

◆ m_page

PFS_opaque_container_page* PFS_table::m_page

Container page.

◆ m_share

PFS_table_share* PFS_table::m_share

Table share.

◆ m_table_stat

PFS_table_stat PFS_table::m_table_stat

Table statistics.

◆ m_thread_owner

PFS_thread* PFS_table::m_thread_owner

Thread Owner.


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