MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pfs_global.cc File Reference
#include "my_global.h"
#include "my_sys.h"
#include "pfs_global.h"
#include "my_net.h"
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
Include dependency graph for pfs_global.cc:

Go to the source code of this file.

Functions

void * pfs_malloc (size_t size, myf flags)
void pfs_free (void *ptr)
void pfs_print_error (const char *format,...)
uint pfs_get_socket_address (char *host, uint host_len, uint *port, const struct sockaddr_storage *src_addr, socklen_t src_len)

Variables

bool pfs_initialized = false
size_t pfs_allocated_memory = 0

Detailed Description

Miscellaneous global dependencies (implementation).

Definition in file pfs_global.cc.

Function Documentation

void pfs_free ( void *  ptr)

Free memory allocated with

See Also
pfs_malloc.

Definition at line 89 of file pfs_global.cc.

Here is the caller graph for this function:

uint pfs_get_socket_address ( char *  host,
uint  host_len,
uint *  port,
const struct sockaddr_storage *  src_addr,
socklen_t  src_len 
)

Convert raw ip address into readable format. Do not do a reverse DNS lookup.

Definition at line 130 of file pfs_global.cc.

void* pfs_malloc ( size_t  size,
myf  flags 
)

Memory allocation for the performance schema. The memory used internally in the performance schema implementation is allocated once during startup, and considered static thereafter.

Definition at line 47 of file pfs_global.cc.

Here is the caller graph for this function:

Variable Documentation

size_t pfs_allocated_memory = 0

Total memory allocated by the performance schema, in bytes.

Definition at line 40 of file pfs_global.cc.

bool pfs_initialized = false

True when the performance schema is initialized.

Definition at line 39 of file pfs_global.cc.