89 void rebase_memory_stats();
97 m_has_memory_stats =
false;
98 m_instr_class_memory_stats = array;
102 if (!m_has_memory_stats) {
105 return m_instr_class_memory_stats;
109 if (!m_has_memory_stats) {
110 rebase_memory_stats();
111 m_has_memory_stats =
true;
113 return m_instr_class_memory_stats;
128 m_disconnected_count = 0;
129 m_max_controlled_memory = 0;
130 m_max_total_memory = 0;
133 void aggregate_disconnect(
ulonglong controlled_memory,
Common definition used by mysys, performance schema and server & client.
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
Common definition between mysql server & client.
char * user
Definition: mysqladmin.cc:60
const char * host
Definition: mysqladmin.cc:59
Performance schema connection slice (declarations).
Miscellaneous global dependencies (declarations).
#define PFS_ALIGNED
Definition: pfs_global.h:57
Performance schema internal locks (declarations).
Object names (declarations).
Hash key for an account.
Definition: pfs_account.h:59
PFS_user_name m_user_name
User name.
Definition: pfs_account.h:61
PFS_host_name m_host_name
Host name.
Definition: pfs_account.h:63
Per account statistics.
Definition: pfs_account.h:67
pfs_lock m_lock
Internal lock.
Definition: pfs_account.h:117
ulonglong m_max_controlled_memory
Definition: pfs_account.h:137
ulonglong m_max_total_memory
Definition: pfs_account.h:138
bool m_enabled
True if this account is enabled, per rules in table SETUP_ACTORS.
Definition: pfs_account.h:120
PFS_user * m_user
Definition: pfs_account.h:124
const PFS_memory_shared_stat * read_instr_class_memory_stats() const
Definition: pfs_account.h:101
void set_instr_class_memory_stats(PFS_memory_shared_stat *array)
Definition: pfs_account.h:96
PFS_memory_shared_stat * m_instr_class_memory_stats
Per account memory aggregated statistics.
Definition: pfs_account.h:149
void dec_refcount()
Definition: pfs_account.h:75
void init_refcount()
Definition: pfs_account.h:69
ulonglong m_disconnected_count
Definition: pfs_account.h:136
int get_refcount()
Definition: pfs_account.h:71
PFS_host * m_host
Definition: pfs_account.h:125
PFS_memory_shared_stat * write_instr_class_memory_stats()
Definition: pfs_account.h:108
std::atomic< int > m_refcount
Definition: pfs_account.h:141
PFS_account_key m_key
Definition: pfs_account.h:118
void inc_refcount()
Definition: pfs_account.h:73
bool m_history
True if this account has history enabled, per rules in table SETUP_ACTORS.
Definition: pfs_account.h:123
void reset_connections_stats()
Definition: pfs_account.h:127
A connection slice, an arbitrary grouping of several connections.
Definition: pfs_con_slice.h:54
Performance schema global sizing parameters.
Definition: pfs_server.h:113
Definition: pfs_name.h:514
Per host statistics.
Definition: pfs_host.h:64
Definition: pfs_stat.h:937
Definition: pfs_stat.h:883
Definition: pfs_stat.h:888
Instrumented thread implementation.
Definition: pfs_instr.h:373
Definition: pfs_name.h:470
Per user statistics.
Definition: pfs_user.h:63
A 'lock' protecting performance schema internal buffers.
Definition: pfs_lock.h:154
unsigned int uint
Definition: uca9-dump.cc:75
static void alive(server *s)
Definition: xcom_transport.cc:161