Skip to content

File cas_query_info.c

FileList > broker > cas_query_info.c

Go to the source code of this file

  • #include <stdio.h>
  • #include <stdlib.h>
  • #include <errno.h>
  • #include <string.h>
  • #include "cas_common.h"
  • #include "cas_query_info.h"
  • #include "broker_log_sql_list.h"
  • #include "broker_log_top.h"

Public Static Attributes

Type Name
int num_query_info = 0
T_QUERY_INFO * query_info_arr = [**NULL**](freelistheap_8h.md#define-null)

Public Functions

Type Name
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_clear (T_QUERY_INFO * qi)
void query_info_init (T_QUERY_INFO * qi)
void query_info_print (void)

Public Static Functions

Type Name
int sort_func (const void * arg1, const void * arg2)
char * time2str (int t, char * buf)

Macros

Type Name
define LOG_TOP_NE_FILE "log\_top.ne"
define LOG_TOP_Q_FILE "log\_top.q"
define LOG_TOP_RES_FILE "log\_top.res"
define LOG_TOP_TAG_FILE "tags"

Public Static Attributes Documentation

variable num_query_info

int num_query_info;

variable query_info_arr

T_QUERY_INFO* query_info_arr;

Public Functions Documentation

function query_info_add

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

function query_info_add_ne

int query_info_add_ne (
    T_QUERY_INFO * qi,
    char * end_date
) 

function query_info_clear

void query_info_clear (
    T_QUERY_INFO * qi
) 

function query_info_init

void query_info_init (
    T_QUERY_INFO * qi
) 

function query_info_print

void query_info_print (
    void
) 

Public Static Functions Documentation

function sort_func

static int sort_func (
    const  void * arg1,
    const  void * arg2
) 

function time2str

static char * time2str (
    int t,
    char * buf
) 

Macro Definition Documentation

define LOG_TOP_NE_FILE

#define LOG_TOP_NE_FILE `"log_top.ne"`

define LOG_TOP_Q_FILE

#define LOG_TOP_Q_FILE `"log_top.q"`

define LOG_TOP_RES_FILE

#define LOG_TOP_RES_FILE `"log_top.res"`

define LOG_TOP_TAG_FILE

#define LOG_TOP_TAG_FILE `"tags"`


The documentation for this class was generated from the following file cubrid/src/broker/cas_query_info.c