MySQL 9.0.0
Source Code Documentation
sql_profile.h File Reference
#include "my_config.h"
#include <stddef.h>
#include <sys/types.h>
#include "lex_string.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "sql/table.h"
#include "sql/thr_malloc.h"
#include <sys/resource.h>
#include "mysql/service_mysql_alloc.h"

Go to the source code of this file.

Classes

class  Queue< T >
 Implements a persistent FIFO using server List method names. More...
 
struct  Queue< T >::queue_item
 
class  PROF_MEASUREMENT
 A single entry in a single profile. More...
 
class  QUERY_PROFILE
 The full profile for a single query, and includes multiple PROF_MEASUREMENT objects. More...
 
class  PROFILING
 Profiling state for a single THD; contains multiple QUERY_PROFILE objects. More...
 

Macros

#define PROFILE_NONE   (uint)0
 
#define PROFILE_CPU   (uint)(1 << 0)
 
#define PROFILE_MEMORY   (uint)(1 << 1)
 
#define PROFILE_BLOCK_IO   (uint)(1 << 2)
 
#define PROFILE_CONTEXT   (uint)(1 << 3)
 
#define PROFILE_PAGE_FAULTS   (uint)(1 << 4)
 
#define PROFILE_IPC   (uint)(1 << 5)
 
#define PROFILE_SWAPS   (uint)(1 << 6)
 
#define PROFILE_SOURCE   (uint)(1 << 16)
 
#define PROFILE_ALL   (uint)(~0)
 

Typedefs

typedef int64 query_id_t
 

Functions

int fill_query_profile_statistics_info (THD *thd, Table_ref *tables, Item *)
 Connects Information_Schema and Profiling. More...
 
int make_profile_table_for_show (THD *thd, ST_SCHEMA_TABLE *schema_table)
 

Variables

ST_FIELD_INFO query_profile_statistics_info []
 
PSI_memory_key key_memory_queue_item
 

Macro Definition Documentation

◆ PROFILE_ALL

#define PROFILE_ALL   (uint)(~0)

◆ PROFILE_BLOCK_IO

#define PROFILE_BLOCK_IO   (uint)(1 << 2)

◆ PROFILE_CONTEXT

#define PROFILE_CONTEXT   (uint)(1 << 3)

◆ PROFILE_CPU

#define PROFILE_CPU   (uint)(1 << 0)

◆ PROFILE_IPC

#define PROFILE_IPC   (uint)(1 << 5)

◆ PROFILE_MEMORY

#define PROFILE_MEMORY   (uint)(1 << 1)

◆ PROFILE_NONE

#define PROFILE_NONE   (uint)0

◆ PROFILE_PAGE_FAULTS

#define PROFILE_PAGE_FAULTS   (uint)(1 << 4)

◆ PROFILE_SOURCE

#define PROFILE_SOURCE   (uint)(1 << 16)

◆ PROFILE_SWAPS

#define PROFILE_SWAPS   (uint)(1 << 6)

Typedef Documentation

◆ query_id_t

typedef int64 query_id_t

Function Documentation

◆ fill_query_profile_statistics_info()

int fill_query_profile_statistics_info ( THD thd,
Table_ref tables,
Item  
)

Connects Information_Schema and Profiling.

◆ make_profile_table_for_show()

int make_profile_table_for_show ( THD thd,
ST_SCHEMA_TABLE schema_table 
)

Variable Documentation

◆ key_memory_queue_item

PSI_memory_key key_memory_queue_item
extern

◆ query_profile_statistics_info

ST_FIELD_INFO query_profile_statistics_info[]
extern