CUBRID Engine  latest
cas_query_info.h File Reference
#include "broker_log_top.h"
#include "broker_log_util.h"
Include dependency graph for cas_query_info.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  t_query_info
 

Typedefs

typedef struct t_query_info T_QUERY_INFO
 

Functions

void query_info_init (T_QUERY_INFO *query_info)
 
void query_info_clear (T_QUERY_INFO *qi)
 
int query_info_add (T_QUERY_INFO *qi, int exec_time, int execute_res, char *filename, int lineno, char *end_date)
 
int query_info_add_ne (T_QUERY_INFO *qi, char *end_date)
 
void query_info_print (void)
 

Typedef Documentation

typedef struct t_query_info T_QUERY_INFO

Definition at line 32 of file cas_query_info.h.

Function Documentation

int query_info_add ( T_QUERY_INFO qi,
int  exec_time,
int  execute_res,
char *  filename,
int  lineno,
char *  end_date 
)
int query_info_add_ne ( T_QUERY_INFO qi,
char *  end_date 
)

Definition at line 273 of file cas_query_info.c.

References t_query_info::cas_log, check_log_time(), FREE_MEM, i, NULL, num_query_info, t_query_info::organized_sql, query_info_init(), REALLOC, t_query_info::sql, t_query_info::start_date, and strdup().

Referenced by log_top().

Here is the caller graph for this function:

void query_info_clear ( T_QUERY_INFO qi)

Definition at line 76 of file cas_query_info.c.

References t_query_info::cas_log, FREE_MEM, t_query_info::organized_sql, t_query_info::sql, and t_query_info::start_date.

Referenced by log_top().

Here is the caller graph for this function:

void query_info_init ( T_QUERY_INFO query_info)

Definition at line 68 of file cas_query_info.c.

References t_query_info::max, and t_query_info::min.

Referenced by log_top(), query_info_add(), and query_info_add_ne().

Here is the caller graph for this function:

void query_info_print ( void  )

Definition at line 85 of file cas_query_info.c.

References cubregex::count(), i, log_top_mode, LOG_TOP_NE_FILE, LOG_TOP_Q_FILE, LOG_TOP_RES_FILE, LOG_TOP_TAG_FILE, max, min, MODE_PROC_TIME, NULL, num_query_info, sort_func(), sql_info_write(), TEST, and time2str().

Referenced by log_top_query().

Here is the caller graph for this function: