Skip to content

File trace_event_log.c

FileList > base > trace_event_log.c

Go to the source code of this file

  • #include "event_log.h"
  • #include "trace_log.h"
  • #include "config.h"
  • #include "critical_section.h"
  • #include "dbtype.h"
  • #include "error_manager.h"
  • #include "environment_variable.h"
  • #include "log_impl.h"
  • #include "query_executor.h"
  • #include "object_primitive.h"
  • #include "porting.h"
  • #include "system_parameter.h"
  • #include "xasl_cache.h"
  • #include <assert.h>
  • #include <stdio.h>
  • #include <sys/time.h>
  • #include "memory_wrapper.hpp"

Public Static Attributes

Type Name
FILE * event_Fp = [**NULL**](freelistheap_8h.md#define-null)
char event_log_file_path
FILE * trace_Fp = [**NULL**](freelistheap_8h.md#define-null)
char trace_log_file_path

Public Functions

Type Name
void event_log_bind_values (THREAD_ENTRY * thread_p, FILE * log_fp, int tran_index, int bind_index)
void event_log_end (THREAD_ENTRY * thread_p)
void event_log_final (void)
void event_log_init (const char * db_name)
void event_log_log_flush_thr_wait (THREAD_ENTRY * thread_p, int flush_count, clientids * client_info, int flush_time, int flush_wait_time, int writer_time)
void event_log_print_client_info (int tran_index, int indent)
void event_log_sql_string (THREAD_ENTRY * thread_p, FILE * log_fp, XASL_ID * xasl_id, int indent)
void event_log_sql_without_user_oid (FILE * fp, const char * format, int indent, const char * hash_text)
FILE * event_log_start (THREAD_ENTRY * thread_p, const char * log_name)
void trace_log_bind_values (THREAD_ENTRY * thread_p, FILE * log_fp, int tran_index, int bind_index)
void trace_log_end (THREAD_ENTRY * thread_p)
void trace_log_final (void)
void trace_log_init (const char * db_name)
void trace_log_print_client_info (int tran_index, int indent)
FILE * trace_log_start (THREAD_ENTRY * thread_p, const char * log_name)

Public Static Functions

Type Name
void event_log_print_client_ids_info (CLIENTIDS * client_info, int indent)
FILE * trace_event_file_backup (FILE * fp, const char * path)
FILE * trace_event_file_open (const char * path, char log_type)
void trace_event_log_bind_values (THREAD_ENTRY * thread_p, FILE * log_fp, int tran_index, int bind_index)
FILE * trace_event_log_init (const char * db_name, char * log_file_path, char log_type)
void trace_event_log_print_client_info (int tran_index, int indent, FILE * log_fp)
FILE * trace_event_log_start (THREAD_ENTRY * thread_p, const char * log_name, const char log_type)
void trace_event_print_client_ids_info (CLIENTIDS * client_info, int indent)

Macros

Type Name
define EVENT_LOG_FILE_PREFIX "\_"
define EVENT_LOG_FILE_SUFFIX ".event"
define LATEST_SQL_TRACE_FILE "\_sql\_trace.log"
define LOG_FILE_DIR "server"
define TRACE_LOG_FILE_PREFIX "\_sql\_trace\_"
define TRACE_LOG_FILE_SUFFIX ".log"

Public Static Attributes Documentation

variable event_Fp

FILE* event_Fp;

variable event_log_file_path

char event_log_file_path[PATH_MAX];

variable trace_Fp

FILE* trace_Fp;

variable trace_log_file_path

char trace_log_file_path[PATH_MAX];

Public Functions Documentation

function event_log_bind_values

void event_log_bind_values (
    THREAD_ENTRY * thread_p,
    FILE * log_fp,
    int tran_index,
    int bind_index
) 

function event_log_end

void event_log_end (
    THREAD_ENTRY * thread_p
) 

function event_log_final

void event_log_final (
    void
) 

function event_log_init

void event_log_init (
    const  char * db_name
) 

function event_log_log_flush_thr_wait

void event_log_log_flush_thr_wait (
    THREAD_ENTRY * thread_p,
    int flush_count,
    clientids * client_info,
    int flush_time,
    int flush_wait_time,
    int writer_time
) 

function event_log_print_client_info

void event_log_print_client_info (
    int tran_index,
    int indent
) 

function event_log_sql_string

void event_log_sql_string (
    THREAD_ENTRY * thread_p,
    FILE * log_fp,
    XASL_ID * xasl_id,
    int indent
) 

function event_log_sql_without_user_oid

void event_log_sql_without_user_oid (
    FILE * fp,
    const  char * format,
    int indent,
    const  char * hash_text
) 

function event_log_start

FILE * event_log_start (
    THREAD_ENTRY * thread_p,
    const  char * log_name
) 

function trace_log_bind_values

void trace_log_bind_values (
    THREAD_ENTRY * thread_p,
    FILE * log_fp,
    int tran_index,
    int bind_index
) 

function trace_log_end

void trace_log_end (
    THREAD_ENTRY * thread_p
) 

function trace_log_final

void trace_log_final (
    void
) 

function trace_log_init

void trace_log_init (
    const  char * db_name
) 

function trace_log_print_client_info

void trace_log_print_client_info (
    int tran_index,
    int indent
) 

function trace_log_start

FILE * trace_log_start (
    THREAD_ENTRY * thread_p,
    const  char * log_name
) 

Public Static Functions Documentation

function event_log_print_client_ids_info

static void event_log_print_client_ids_info (
    CLIENTIDS * client_info,
    int indent
) 

function trace_event_file_backup

static FILE * trace_event_file_backup (
    FILE * fp,
    const  char * path
) 

function trace_event_file_open

static FILE * trace_event_file_open (
    const  char * path,
    char log_type
) 

function trace_event_log_bind_values

static void trace_event_log_bind_values (
    THREAD_ENTRY * thread_p,
    FILE * log_fp,
    int tran_index,
    int bind_index
) 

function trace_event_log_init

static FILE * trace_event_log_init (
    const  char * db_name,
    char * log_file_path,
    char log_type
) 

function trace_event_log_print_client_info

static void trace_event_log_print_client_info (
    int tran_index,
    int indent,
    FILE * log_fp
) 

function trace_event_log_start

static FILE * trace_event_log_start (
    THREAD_ENTRY * thread_p,
    const  char * log_name,
    const  char log_type
) 

function trace_event_print_client_ids_info

static void trace_event_print_client_ids_info (
    CLIENTIDS * client_info,
    int indent
) 

Macro Definition Documentation

define EVENT_LOG_FILE_PREFIX

#define EVENT_LOG_FILE_PREFIX `"_"`

define EVENT_LOG_FILE_SUFFIX

#define EVENT_LOG_FILE_SUFFIX `".event"`

define LATEST_SQL_TRACE_FILE

#define LATEST_SQL_TRACE_FILE `"_sql_trace.log"`

define LOG_FILE_DIR

#define LOG_FILE_DIR `"server"`

define TRACE_LOG_FILE_PREFIX

#define TRACE_LOG_FILE_PREFIX `"_sql_trace_"`

define TRACE_LOG_FILE_SUFFIX

#define TRACE_LOG_FILE_SUFFIX `".log"`


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