MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pfs_server.cc File Reference
#include "my_global.h"
#include "my_sys.h"
#include "mysys_err.h"
#include "pfs_server.h"
#include "pfs.h"
#include "pfs_global.h"
#include "pfs_instr_class.h"
#include "pfs_instr.h"
#include "pfs_events_waits.h"
#include "pfs_events_stages.h"
#include "pfs_events_statements.h"
#include "pfs_timer.h"
#include "pfs_setup_actor.h"
#include "pfs_setup_object.h"
#include "pfs_host.h"
#include "pfs_user.h"
#include "pfs_account.h"
#include "pfs_defaults.h"
#include "pfs_digest.h"
Include dependency graph for pfs_server.cc:

Go to the source code of this file.

Functions

void cleanup_instrument_config (void)
struct PSI_bootstrapinitialize_performance_schema (PFS_global_param *param)
void shutdown_performance_schema (void)
void init_pfs_instrument_array ()
int add_pfs_instr_to_array (const char *name, const char *value)

Variables

PFS_global_param pfs_param

Detailed Description

Private interface for the server (implementation).

Definition in file pfs_server.cc.

Function Documentation

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

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 cleanup_instrument_config ( )

Deallocate the PFS_INSTRUMENT array. Use an atomic compare-and-swap to ensure that it is deallocated only once in the chaotic environment of server shutdown.

Definition at line 226 of file pfs_server.cc.

void init_pfs_instrument_array ( )

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.