MySQL 8.0.40
Source Code Documentation
|
Statement Digest data structures (declarations). More...
#include <sys/types.h>
#include <atomic>
#include "lf.h"
#include "my_inttypes.h"
#include "mysql_com.h"
#include "sql/sql_digest.h"
#include "storage/perfschema/pfs_column_types.h"
#include "storage/perfschema/pfs_histogram.h"
#include "storage/perfschema/pfs_lock.h"
#include "storage/perfschema/pfs_name.h"
#include "storage/perfschema/pfs_stat.h"
Go to the source code of this file.
Classes | |
struct | PFS_digest_key |
Structure to store a hash value (digest) for a statement. More... | |
struct | PFS_statements_digest_stat |
A statement digest stat record. More... | |
Functions | |
int | init_digest (const PFS_global_param *param) |
Initialize table EVENTS_STATEMENTS_SUMMARY_BY_DIGEST. More... | |
void | cleanup_digest () |
Cleanup table EVENTS_STATEMENTS_SUMMARY_BY_DIGEST. More... | |
int | init_digest_hash (const PFS_global_param *param) |
Initialize the digest hash. More... | |
void | cleanup_digest_hash () |
PFS_statements_digest_stat * | find_or_create_digest (PFS_thread *thread, const sql_digest_storage *digest_storage, const char *schema_name, uint schema_name_length) |
void | reset_esms_by_digest () |
void | reset_histogram_by_digest () |
Variables | |
bool | flag_statements_digest |
Consumer flag for table EVENTS_STATEMENTS_SUMMARY_BY_DIGEST. More... | |
size_t | digest_max |
ulong | digest_lost |
PFS_statements_digest_stat * | statements_digest_stat_array |
EVENTS_STATEMENTS_SUMMARY_BY_DIGEST buffer. More... | |
LF_HASH | digest_hash |
Statement Digest data structures (declarations).
void cleanup_digest | ( | ) |
Cleanup table EVENTS_STATEMENTS_SUMMARY_BY_DIGEST.
void cleanup_digest_hash | ( | ) |
PFS_statements_digest_stat * find_or_create_digest | ( | PFS_thread * | thread, |
const sql_digest_storage * | digest_storage, | ||
const char * | schema_name, | ||
uint | schema_name_length | ||
) |
int init_digest | ( | const PFS_global_param * | param | ) |
Initialize table EVENTS_STATEMENTS_SUMMARY_BY_DIGEST.
param | performance schema sizing |
int init_digest_hash | ( | const PFS_global_param * | param | ) |
Initialize the digest hash.
void reset_esms_by_digest | ( | ) |
void reset_histogram_by_digest | ( | ) |
|
extern |
|
extern |
|
extern |
|
extern |
Consumer flag for table EVENTS_STATEMENTS_SUMMARY_BY_DIGEST.
|
extern |
EVENTS_STATEMENTS_SUMMARY_BY_DIGEST buffer.