MySQL 8.0.29
Source Code Documentation
pfs_program.h File Reference

Stored Program data structures (declarations). More...

Go to the source code of this file.

Classes

struct  PFS_program_key
 Hash key for a program. More...
 
struct  PFS_program
 

Functions

int init_program (const PFS_global_param *param)
 Initialize table EVENTS_STATEMENTS_SUMMARY_BY_PROGRAM. More...
 
void cleanup_program (void)
 Cleanup table EVENTS_STATEMENTS_SUMMARY_BY_PROGRAM. More...
 
int init_program_hash (const PFS_global_param *param)
 Initialize the program hash. More...
 
void cleanup_program_hash (void)
 Cleanup the program hash. More...
 
void reset_esms_by_program ()
 
PFS_programfind_or_create_program (PFS_thread *thread, enum_object_type object_type, const char *object_name, uint object_name_length, const char *schema, uint schema_length)
 
void drop_program (PFS_thread *thread, enum_object_type object_type, const char *object_name, uint object_name_length, const char *schema_name, uint schema_name_length)
 

Variables

LF_HASH program_hash
 

Detailed Description

Stored Program data structures (declarations).

Function Documentation

◆ cleanup_program()

void cleanup_program ( void  )

Cleanup table EVENTS_STATEMENTS_SUMMARY_BY_PROGRAM.

◆ cleanup_program_hash()

void cleanup_program_hash ( void  )

Cleanup the program hash.

◆ drop_program()

void drop_program ( PFS_thread thread,
enum_object_type  object_type,
const char *  object_name,
uint  object_name_length,
const char *  schema_name,
uint  schema_name_length 
)

◆ find_or_create_program()

PFS_program * find_or_create_program ( PFS_thread thread,
enum_object_type  object_type,
const char *  object_name,
uint  object_name_length,
const char *  schema,
uint  schema_length 
)

◆ init_program()

int init_program ( const PFS_global_param param)

Initialize table EVENTS_STATEMENTS_SUMMARY_BY_PROGRAM.

Parameters
paramperformance schema sizing

◆ init_program_hash()

int init_program_hash ( const PFS_global_param param)

Initialize the program hash.

Returns
0 on success

◆ reset_esms_by_program()

void reset_esms_by_program ( )

Variable Documentation

◆ program_hash

LF_HASH program_hash
extern