MySQL 8.0.29
Source Code Documentation
service_pfs_resource_group.cc File Reference

The performance schema implementation of the resource group service. More...

Functions

int pfs_set_thread_resource_group_vc (const char *group_name, int group_name_len, void *user_data)
 Implementation of the thread instrumentation interface. More...
 
int pfs_set_thread_resource_group_by_id_vc (PSI_thread *thread, ulonglong thread_id, const char *group_name, int group_name_len, void *user_data)
 Implementation of the thread instrumentation interface. More...
 
int pfs_get_thread_system_attrs_vc (PSI_thread_attrs *thread_attrs)
 Implementation of the thread instrumentation interface. More...
 
int pfs_get_thread_system_attrs_by_id_vc (PSI_thread *thread, ulonglong thread_id, PSI_thread_attrs *thread_attrs)
 Implementation of the thread instrumentation interface. More...
 
int impl_pfs_set_thread_resource_group (const char *group_name, int group_name_len, void *user_data)
 
int impl_pfs_set_thread_resource_group_by_id (PSI_thread *thread, ulonglong thread_id, const char *group_name, int group_name_len, void *user_data)
 
int impl_pfs_get_thread_system_attrs (PSI_thread_attrs *thread_attrs)
 
int impl_pfs_get_thread_system_attrs_by_id (PSI_thread *thread, ulonglong thread_id, PSI_thread_attrs *thread_attrs)
 
int register_pfs_resource_group_service ()
 Register the Resource Group service with the MySQL server registry. More...
 
int unregister_pfs_resource_group_service ()
 Unregister the Resource Group service. More...
 

Variables

const mysql_service_pfs_resource_group_v3_t SERVICE_IMPLEMENTATION (mysql_server, pfs_resource_group_v3)
 

Detailed Description

The performance schema implementation of the resource group service.

Function Documentation

◆ impl_pfs_get_thread_system_attrs()

int impl_pfs_get_thread_system_attrs ( PSI_thread_attrs thread_attrs)

◆ impl_pfs_get_thread_system_attrs_by_id()

int impl_pfs_get_thread_system_attrs_by_id ( PSI_thread thread,
ulonglong  thread_id,
PSI_thread_attrs thread_attrs 
)

◆ impl_pfs_set_thread_resource_group()

int impl_pfs_set_thread_resource_group ( const char *  group_name,
int  group_name_len,
void *  user_data 
)

◆ impl_pfs_set_thread_resource_group_by_id()

int impl_pfs_set_thread_resource_group_by_id ( PSI_thread thread,
ulonglong  thread_id,
const char *  group_name,
int  group_name_len,
void *  user_data 
)

◆ pfs_get_thread_system_attrs_by_id_vc()

int pfs_get_thread_system_attrs_by_id_vc ( PSI_thread thread,
ulonglong  thread_id,
PSI_thread_attrs thread_attrs 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::get_thread_system_attrs_by_id.

◆ pfs_get_thread_system_attrs_vc()

int pfs_get_thread_system_attrs_vc ( PSI_thread_attrs thread_attrs)

Implementation of the thread instrumentation interface.

See also
PSI_v2::get_thread_system_attrs.

◆ pfs_set_thread_resource_group_by_id_vc()

int pfs_set_thread_resource_group_by_id_vc ( PSI_thread thread,
ulonglong  thread_id,
const char *  group_name,
int  group_name_len,
void *  user_data 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_resource_group_by_id

◆ pfs_set_thread_resource_group_vc()

int pfs_set_thread_resource_group_vc ( const char *  group_name,
int  group_name_len,
void *  user_data 
)

Implementation of the thread instrumentation interface.

See also
PSI_v2::set_thread_resource_group

◆ register_pfs_resource_group_service()

int register_pfs_resource_group_service ( )

Register the Resource Group service with the MySQL server registry.

Register/unregister resource group service.

Returns
0 if successful, 1 otherwise

◆ unregister_pfs_resource_group_service()

int unregister_pfs_resource_group_service ( )

Unregister the Resource Group service.

Returns
0 if successful, 1 otherwise

Variable Documentation

◆ SERVICE_IMPLEMENTATION

const mysql_service_pfs_resource_group_v3_t SERVICE_IMPLEMENTATION(mysql_server, pfs_resource_group_v3) ( mysql_server  ,
pfs_resource_group_v3   
)
Initial value:
= {
int impl_pfs_set_thread_resource_group(const char *group_name, int group_name_len, void *user_data)
Definition: service_pfs_resource_group.cc:49
int impl_pfs_get_thread_system_attrs_by_id(PSI_thread *thread, ulonglong thread_id, PSI_thread_attrs *thread_attrs)
Definition: service_pfs_resource_group.cc:68
int impl_pfs_get_thread_system_attrs(PSI_thread_attrs *thread_attrs)
Definition: service_pfs_resource_group.cc:64
int impl_pfs_set_thread_resource_group_by_id(PSI_thread *thread, ulonglong thread_id, const char *group_name, int group_name_len, void *user_data)
Definition: service_pfs_resource_group.cc:55