MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pfs_server.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PFS_sizing_hints
struct  PFS_global_param

Macros

#define PFS_MAX_MUTEX_CLASS   200
#define PFS_MAX_RWLOCK_CLASS   30
#define PFS_MAX_COND_CLASS   80
#define PFS_MAX_THREAD_CLASS   50
#define PFS_MAX_FILE_CLASS   50
#define PFS_MAX_FILE_HANDLE   32768
#define PFS_MAX_SOCKET_CLASS   10
#define PFS_MAX_SETUP_ACTOR   100
#define PFS_MAX_SETUP_OBJECT   100
#define PFS_MAX_STAGE_CLASS   150
#define PFS_STATEMENTS_STACK_SIZE   10

Functions

struct PSI_bootstrapinitialize_performance_schema (PFS_global_param *param)
void pfs_automated_sizing (PFS_global_param *param)
void initialize_performance_schema_acl (bool bootstrap)
void check_performance_schema ()
void init_pfs_instrument_array ()
int add_pfs_instr_to_array (const char *name, const char *value)
void shutdown_performance_schema ()

Variables

PFS_global_param pfs_param

Detailed Description

Private interface for the server (declarations).

Definition in file pfs_server.h.

Function Documentation

int add_pfs_instr_to_array ( const char *  name,
const char *  value 
)

Process one PFS_INSTRUMENT configuration string.

Process one performance_schema_instrument configuration string. Isolate the instrument name, evaluate the option value, and store them in a dynamic array. Return 'false' for success, 'true' for error.

Parameters
nameInstrument name
valueConfiguration option: 'on', 'off', etc.
Returns
0 for success, non zero for errors

Definition at line 245 of file pfs_server.cc.

void check_performance_schema ( )

Check that the performance schema tables have the expected structure. Discrepancies are written in the server log, but are not considered fatal, so this function does not return an error code:

  • some differences are compatible, and should not cause a failure
  • some differences are not compatible, but then the DBA needs an operational server to be able to DROP+CREATE the tables with the proper structure, as part of the initial server installation or during an upgrade. In case of discrepancies, later attempt to perform DML against the performance schema will be rejected with an error.

Definition at line 45 of file pfs_check.cc.

Here is the call graph for this function:

void init_pfs_instrument_array ( )

Initialize the dynamic array holding individual instrument settings collected from the server configuration options.

Initialize the dynamic array used to hold PFS_INSTRUMENT configuration options.

Definition at line 216 of file pfs_server.cc.

struct PSI_bootstrap* initialize_performance_schema ( PFS_global_param param)
read

Initialize the performance schema.

Parameters
paramSize parameters to use.
Returns
A boostrap handle, or NULL.

Default values for SETUP_CONSUMERS

Definition at line 53 of file pfs_server.cc.

Here is the call graph for this function:

void shutdown_performance_schema ( )

Shutdown the performance schema.

Definition at line 194 of file pfs_server.cc.

Variable Documentation

PFS_global_param pfs_param

Performance schema sizing values for the server. This global variable is set when parsing server startup options.

Definition at line 41 of file pfs_server.cc.