MySQL 5.6.14 Source Code Document
|
#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"
Go to the source code of this file.
Functions | |
void | cleanup_instrument_config (void) |
struct PSI_bootstrap * | initialize_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 |
Private interface for the server (implementation).
Definition in file pfs_server.cc.
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.
name | Instrument name |
value | Configuration option: 'on', 'off', etc. |
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.
|
read |
Initialize the performance schema.
param | Size parameters to use. |
Default values for SETUP_CONSUMERS
Definition at line 53 of file pfs_server.cc.
void shutdown_performance_schema | ( | ) |
Shutdown the performance schema.
Definition at line 194 of file pfs_server.cc.
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.