CUBRID Engine
latest
|
#include <stdio.h>
#include <time.h>
#include <assert.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "perf_monitor.h"
#include "error_manager.h"
#include "object_representation.h"
#include "memory_alloc.h"
#include "server_interface.h"
#include "thread_worker_pool.hpp"
#include <cstring>
#include "network_interface_cl.h"
Go to the source code of this file.
Macros | |
#define | PSTAT_VALUE_CUSTOM 0x00000001 |
#define | PSTAT_METADATA_INIT_SINGLE_ACC(id, name) { id, name, PSTAT_ACCUMULATE_SINGLE_VALUE, 0, 0, NULL, NULL, NULL } |
#define | PSTAT_METADATA_INIT_SINGLE_PEEK(id, name) { id, name, PSTAT_PEEK_SINGLE_VALUE, 0, 0, NULL, NULL, NULL } |
#define | PSTAT_METADATA_INIT_COUNTER_TIMER(id, name) { id, name, PSTAT_COUNTER_TIMER_VALUE, 0, 0, NULL, NULL, NULL } |
#define | PSTAT_METADATA_INIT_COMPUTED_RATIO(id, name) { id, name, PSTAT_COMPUTED_RATIO_VALUE, 0, 0, NULL, NULL, NULL } |
#define | PSTAT_METADATA_INIT_COMPLEX(id, name, f_dump_in_file, f_dump_in_buffer, f_load) { id, name, PSTAT_COMPLEX_VALUE, 0, 0, f_dump_in_file, f_dump_in_buffer, f_load } |
#define | PERFMON_VALUES_MEMSIZE (pstat_Global.n_stat_values * sizeof (UINT64)) |
Variables | |
const char * | perfmon_Portable_worker_stat_names [] |
static const size_t | PERFMON_PORTABLE_WORKER_STAT_COUNT |
static const char * | perfmon_Portable_daemon_stat_names [] |
static const size_t | PERFMON_PORTABLE_DAEMON_STAT_COUNT |
static const char * | perfmon_Portable_daemon_names [] |
static const size_t | PERFMON_PORTABLE_DAEMON_COUNT = sizeof (perfmon_Portable_daemon_names) / sizeof (const char *) |
#define PERFMON_VALUES_MEMSIZE (pstat_Global.n_stat_values * sizeof (UINT64)) |
Definition at line 113 of file perf_monitor.c.
Referenced by perfmon_allocate_packed_values_buffer(), perfmon_allocate_values(), perfmon_copy_values(), perfmon_finalize(), and perfmon_initialize().
#define PSTAT_METADATA_INIT_COMPLEX | ( | id, | |
name, | |||
f_dump_in_file, | |||
f_dump_in_buffer, | |||
f_load | |||
) | { id, name, PSTAT_COMPLEX_VALUE, 0, 0, f_dump_in_file, f_dump_in_buffer, f_load } |
Definition at line 110 of file perf_monitor.c.
#define PSTAT_METADATA_INIT_COMPUTED_RATIO | ( | id, | |
name | |||
) | { id, name, PSTAT_COMPUTED_RATIO_VALUE, 0, 0, NULL, NULL, NULL } |
Definition at line 108 of file perf_monitor.c.
#define PSTAT_METADATA_INIT_COUNTER_TIMER | ( | id, | |
name | |||
) | { id, name, PSTAT_COUNTER_TIMER_VALUE, 0, 0, NULL, NULL, NULL } |
Definition at line 107 of file perf_monitor.c.
#define PSTAT_METADATA_INIT_SINGLE_ACC | ( | id, | |
name | |||
) | { id, name, PSTAT_ACCUMULATE_SINGLE_VALUE, 0, 0, NULL, NULL, NULL } |
Definition at line 104 of file perf_monitor.c.
#define PSTAT_METADATA_INIT_SINGLE_PEEK | ( | id, | |
name | |||
) | { id, name, PSTAT_PEEK_SINGLE_VALUE, 0, 0, NULL, NULL, NULL } |
Definition at line 105 of file perf_monitor.c.
#define PSTAT_VALUE_CUSTOM 0x00000001 |
Definition at line 102 of file perf_monitor.c.
|
static |
Definition at line 3537 of file perf_monitor.c.
References perfmon_stat_dump_in_buffer_fix_page_array_stat().
|
static |
Definition at line 3551 of file perf_monitor.c.
References perfmon_stat_dump_in_buffer_promote_page_array_stat().
|
static |
Definition at line 3565 of file perf_monitor.c.
References perfmon_stat_dump_in_buffer_promote_page_array_stat().
|
static |
Definition at line 3579 of file perf_monitor.c.
References perfmon_stat_dump_in_buffer_unfix_page_array_stat().
|
static |
Definition at line 3672 of file perf_monitor.c.
References pstat_global::activation_flag, PERFMON_ACTIVATION_FLAG_FLUSHED_BLOCK_VOLUMES, and perfmon_stat_dump_in_buffer_fix_page_array_stat().
|
static |
Definition at line 3638 of file perf_monitor.c.
References pstat_global::activation_flag, PERFMON_ACTIVATION_FLAG_MVCC_SNAPSHOT, and perfmon_stat_dump_in_buffer_mvcc_snapshot_array_stat().
|
static |
Definition at line 4186 of file perf_monitor.c.
References pstat_global::activation_flag, PERFMON_ACTIVATION_FLAG_DAEMONS, and perfmon_stat_dump_in_buffer_thread_daemon_stats().
|
static |
Definition at line 4005 of file perf_monitor.c.
References pstat_global::activation_flag, PERFMON_ACTIVATION_FLAG_THREAD, and perfmon_stat_dump_in_buffer_thread_stats().
|
static |
Definition at line 3624 of file perf_monitor.c.
References perfmon_stat_dump_in_buffer_page_fix_time_array_stat().
|
static |
Definition at line 3609 of file perf_monitor.c.
References perfmon_stat_dump_in_buffer_page_hold_time_array_stat().
|
static |
Definition at line 3594 of file perf_monitor.c.
References perfmon_stat_dump_in_buffer_page_lock_time_array_stat().
|
static |
Definition at line 3655 of file perf_monitor.c.
References pstat_global::activation_flag, PERFMON_ACTIVATION_FLAG_LOCK_OBJECT, and perfmon_stat_dump_in_buffer_obj_lock_array_stat().
|
static |
Definition at line 3398 of file perf_monitor.c.
References perfmon_stat_dump_in_file_fix_page_array_stat().
|
static |
Definition at line 3410 of file perf_monitor.c.
References perfmon_stat_dump_in_file_promote_page_array_stat().
|
static |
Definition at line 3423 of file perf_monitor.c.
References perfmon_stat_dump_in_file_promote_page_array_stat().
|
static |
Definition at line 3436 of file perf_monitor.c.
References perfmon_stat_dump_in_file_unfix_page_array_stat().
|
static |
Definition at line 3520 of file perf_monitor.c.
References pstat_global::activation_flag, PERFMON_ACTIVATION_FLAG_FLUSHED_BLOCK_VOLUMES, and perfmon_stat_dump_in_file_flushed_block_volumes_array_stat().
|
static |
Definition at line 3488 of file perf_monitor.c.
References pstat_global::activation_flag, PERFMON_ACTIVATION_FLAG_MVCC_SNAPSHOT, and perfmon_stat_dump_in_file_mvcc_snapshot_array_stat().
|
static |
Definition at line 4144 of file perf_monitor.c.
References pstat_global::activation_flag, PERFMON_ACTIVATION_FLAG_DAEMONS, and perfmon_stat_dump_in_file_thread_daemon_stats().
|
static |
Definition at line 3964 of file perf_monitor.c.
References pstat_global::activation_flag, PERFMON_ACTIVATION_FLAG_THREAD, and perfmon_stat_dump_in_file_thread_stats().
|
static |
Definition at line 3475 of file perf_monitor.c.
References perfmon_stat_dump_in_file_page_fix_time_array_stat().
|
static |
Definition at line 3462 of file perf_monitor.c.
References perfmon_stat_dump_in_file_page_hold_time_array_stat().
|
static |
Definition at line 3449 of file perf_monitor.c.
References perfmon_stat_dump_in_file_page_lock_time_array_stat().
|
static |
Definition at line 3504 of file perf_monitor.c.
References pstat_global::activation_flag, PERFMON_ACTIVATION_FLAG_LOCK_OBJECT, and perfmon_stat_dump_in_file_obj_lock_array_stat().
|
static |
Definition at line 3386 of file perf_monitor.c.
References PERF_MODULE_CNT.
|
static |
Definition at line 3355 of file perf_monitor.c.
References PERF_MODULE_CNT.
|
static |
Definition at line 3245 of file perf_monitor.c.
References PERF_PAGE_FIX_COUNTERS.
|
static |
Definition at line 3255 of file perf_monitor.c.
References PERF_PAGE_PROMOTE_COUNTERS.
|
static |
Definition at line 3265 of file perf_monitor.c.
References PERF_PAGE_PROMOTE_COUNTERS.
|
static |
Definition at line 3275 of file perf_monitor.c.
References PERF_PAGE_UNFIX_COUNTERS.
|
static |
Definition at line 3335 of file perf_monitor.c.
References PERF_DWB_FLUSHED_BLOCK_VOLUMES_CNT.
|
static |
Definition at line 3315 of file perf_monitor.c.
References PERF_MVCC_SNAPSHOT_COUNTERS.
|
static |
Definition at line 4131 of file perf_monitor.c.
References perfmon_thread_daemon_stats_count().
|
static |
Definition at line 3945 of file perf_monitor.c.
References thread_stats_count().
|
static |
Definition at line 3305 of file perf_monitor.c.
References PERF_PAGE_FIX_TIME_COUNTERS.
|
static |
Definition at line 3295 of file perf_monitor.c.
References PERF_PAGE_HOLD_TIME_COUNTERS.
|
static |
Definition at line 3285 of file perf_monitor.c.
References PERF_PAGE_LOCK_TIME_COUNTERS.
|
static |
Definition at line 3376 of file perf_monitor.c.
References PERF_MODULE_CNT.
|
static |
Definition at line 3345 of file perf_monitor.c.
References PERF_MODULE_CNT.
|
static |
Definition at line 3325 of file perf_monitor.c.
References PERF_OBJ_LOCK_STAT_COUNTERS.
|
static |
Definition at line 3365 of file perf_monitor.c.
References PERF_MODULE_CNT.
STATIC_INLINE void perfmon_add_stat_at_offset | ( | THREAD_ENTRY * | thread_p, |
PERF_STAT_ID | psid, | ||
const int | offset, | ||
UINT64 | amount | ||
) |
Definition at line 3231 of file perf_monitor.c.
References assert, pstat_global::initialized, perfmon_add_at_offset(), and PSTAT_BASE.
char* perfmon_allocate_packed_values_buffer | ( | void | ) |
Definition at line 3713 of file perf_monitor.c.
References ARG_FILE_LINE, ASSERT_ALIGN, ER_ERROR_SEVERITY, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), MAX_ALIGNMENT, NULL, and PERFMON_VALUES_MEMSIZE.
Referenced by smnt_server_copy_global_stats(), and smnt_server_copy_stats().
UINT64* perfmon_allocate_values | ( | void | ) |
Definition at line 3695 of file perf_monitor.c.
References ARG_FILE_LINE, ER_ERROR_SEVERITY, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), NULL, and PERFMON_VALUES_MEMSIZE.
Referenced by perfmon_stat_dump_in_buffer_thread_daemon_stats(), smnt_server_copy_global_stats(), smnt_server_copy_stats(), and sqmgr_execute_query().
int perfmon_calc_diff_stats | ( | UINT64 * | stats_diff, |
UINT64 * | new_stats, | ||
UINT64 * | old_stats | ||
) |
Definition at line 1305 of file perf_monitor.c.
References assert, ER_FAILED, i, pstat_metadata::n_vals, NO_ERROR, perfmon_server_calc_stats(), PSTAT_ACCUMULATE_SINGLE_VALUE, PSTAT_COMPLEX_VALUE, PSTAT_COMPUTED_RATIO_VALUE, PSTAT_COUNT, PSTAT_COUNTER_TIMER_VALUE, PSTAT_PB_AVOID_VICTIM_CNT, PSTAT_PEEK_SINGLE_VALUE, and pstat_metadata::start_offset.
Referenced by sqmgr_execute_query().
void perfmon_copy_values | ( | UINT64 * | dest, |
UINT64 * | src | ||
) |
Definition at line 3735 of file perf_monitor.c.
References PERFMON_VALUES_MEMSIZE.
void perfmon_finalize | ( | void | ) |
Definition at line 3123 of file perf_monitor.c.
References assert, free_and_init, pstat_global::global_stats, pstat_global::initialized, pstat_global::is_watching, LOG_FIND_THREAD_TRAN_INDEX, pstat_global::n_trans, pstat_global::n_watchers, NULL, PERFMON_VALUES_MEMSIZE, pthread_mutex_destroy, pthread_mutex_lock, pthread_mutex_unlock, STATIC_INLINE, pstat_global::tran_stats, and pstat_global::watch_lock.
Referenced by boot_client_all_finalize(), boot_initialize_client(), boot_server_all_finalize(), and perfmon_initialize().
void perfmon_get_current_times | ( | time_t * | cpu_user_time, |
time_t * | cpu_sys_time, | ||
time_t * | elapsed_time | ||
) |
Definition at line 1565 of file perf_monitor.c.
References NULL.
int perfmon_get_number_of_statistic_values | ( | void | ) |
Definition at line 3685 of file perf_monitor.c.
References pstat_global::n_stat_values.
Referenced by perfmon_server_copy_global_stats(), perfmon_server_copy_stats(), smnt_server_copy_global_stats(), and smnt_server_copy_stats().
STATIC_INLINE void perfmon_get_peek_stats | ( | UINT64 * | stats | ) |
Definition at line 3801 of file perf_monitor.c.
References heap_get_best_space_num_stats_entries(), PSTAT_HF_NUM_STATS_ENTRIES, PSTAT_PC_NUM_CACHE_ENTRIES, PSTAT_QM_NUM_HOLDABLE_CURSORS, session_get_number_of_holdable_cursors(), pstat_metadata::start_offset, and xcache_get_entry_count().
int perfmon_initialize | ( | int | num_trans | ) |
Definition at line 2990 of file perf_monitor.c.
References pstat_global::activation_flag, ARG_FILE_LINE, assert, ASSERT_ERROR, bool, ER_ERROR_SEVERITY, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), error(), pstat_metadata::f_load, pstat_global::global_stats, pstat_global::initialized, pstat_global::is_watching, pstat_global::n_stat_values, pstat_global::n_trans, pstat_metadata::n_vals, pstat_global::n_watchers, NO_ERROR, NULL, perfmon_finalize(), PERFMON_VALUES_MEMSIZE, prm_get_bool_value(), prm_get_integer_value(), PRM_ID_EXTENDED_STATISTICS_ACTIVATION, PRM_ID_STATS_ON, PSTAT_ACCUMULATE_SINGLE_VALUE, PSTAT_COMPLEX_VALUE, PSTAT_COMPUTED_RATIO_VALUE, PSTAT_COUNT, PSTAT_COUNTER_TIMER_VALUE, PSTAT_PEEK_SINGLE_VALUE, pthread_mutex_init, pstat_metadata::start_offset, pstat_global::tran_stats, and pstat_global::watch_lock.
Referenced by boot_initialize_client(), boot_restart_client(), boot_restart_server(), and xboot_delete().
char* perfmon_pack_stats | ( | char * | buf, |
UINT64 * | stats | ||
) |
Definition at line 3751 of file perf_monitor.c.
References i, pstat_global::n_stat_values, OR_INT64_SIZE, and OR_PUT_INT64.
Referenced by smnt_server_copy_global_stats(), and smnt_server_copy_stats().
|
static |
Definition at line 4092 of file perf_monitor.c.
References _er_log_debug(), ARG_FILE_LINE, assert, cubthread::daemon::get_stat_name(), cubthread::daemon::get_stats_value_count(), and PERFMON_PORTABLE_DAEMON_STAT_COUNT.
Referenced by perfmon_stat_dump_in_buffer_thread_daemon_stats(), perfmon_stat_dump_in_file_thread_daemon_stats(), and perfmon_thread_daemon_stats_count().
|
static |
Definition at line 3851 of file perf_monitor.c.
References assert, PSTAT_COUNTER_TIMER_AVG_TIME_VALUE, PSTAT_COUNTER_TIMER_COUNT_VALUE, PSTAT_COUNTER_TIMER_MAX_TIME_VALUE, PSTAT_COUNTER_TIMER_TOTAL_TIME_VALUE, PSTAT_COUNTER_TIMER_VALUE, and pstat_metadata::start_offset.
Referenced by perfmon_server_dump_stats_to_buffer().
|
static |
Definition at line 3822 of file perf_monitor.c.
References assert, PSTAT_COUNTER_TIMER_AVG_TIME_VALUE, PSTAT_COUNTER_TIMER_COUNT_VALUE, PSTAT_COUNTER_TIMER_MAX_TIME_VALUE, PSTAT_COUNTER_TIMER_TOTAL_TIME_VALUE, PSTAT_COUNTER_TIMER_VALUE, and pstat_metadata::start_offset.
Referenced by perfmon_server_dump_stats().
|
static |
Definition at line 1596 of file perf_monitor.c.
References assert, css_get_thread_stats(), i, PAGE_LOG, PERF_CONDITIONAL_FIX, PERF_CONDITIONAL_FIX_CNT, PERF_HOLDER_LATCH_CNT, PERF_HOLDER_LATCH_READ, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, PERF_MODULE_VACUUM, PERF_PAGE_CNT, PERF_PAGE_FIX_COUNTERS, PERF_PAGE_FIX_STAT_OFFSET, PERF_PAGE_FIX_TIME_COUNTERS, PERF_PAGE_FIX_TIME_OFFSET, PERF_PAGE_HOLD_TIME_COUNTERS, PERF_PAGE_HOLD_TIME_OFFSET, PERF_PAGE_LOCK_TIME_COUNTERS, PERF_PAGE_LOCK_TIME_OFFSET, PERF_PAGE_MODE_CNT, PERF_PAGE_MODE_NEW_LOCK_WAIT, PERF_PAGE_MODE_NEW_NO_WAIT, PERF_PAGE_MODE_OLD_IN_BUFFER, PERF_PAGE_MODE_OLD_LOCK_WAIT, PERF_PAGE_PROMOTE_COUNTERS, PERF_PAGE_PROMOTE_STAT_OFFSET, PERF_PAGE_UNFIX_COUNTERS, PERF_PAGE_UNFIX_STAT_OFFSET, PERF_PAGE_UNKNOWN, PERF_PROMOTE_CONDITION_CNT, PERF_PROMOTE_ONLY_READER, pgbuf_peek_stats(), PSTAT_COUNT, PSTAT_COUNTER_TIMER_AVG_TIME_VALUE, PSTAT_COUNTER_TIMER_COUNT_VALUE, PSTAT_COUNTER_TIMER_TOTAL_TIME_VALUE, PSTAT_COUNTER_TIMER_VALUE, PSTAT_LOAD_THREAD_STATS, PSTAT_LOG_HIT_RATIO, PSTAT_LOG_NUM_FETCHES, PSTAT_LOG_NUM_IOREADS, PSTAT_PB_AVOID_DEALLOC_CNT, PSTAT_PB_AVOID_VICTIM_CNT, PSTAT_PB_DIRTY_CNT, PSTAT_PB_FIXED_CNT, PSTAT_PB_FLUSHED_BCBS_WAIT_FOR_ASSIGN, PSTAT_PB_HIT_RATIO, PSTAT_PB_LFCQ_BIG_PRV_NUM, PSTAT_PB_LFCQ_PRV_NUM, PSTAT_PB_LFCQ_SHR_NUM, PSTAT_PB_LRU1_CNT, PSTAT_PB_LRU2_CNT, PSTAT_PB_LRU3_CNT, PSTAT_PB_NUM_FETCHES, PSTAT_PB_NUM_IOREADS, PSTAT_PB_PAGE_ALLOCATE_TIME_RATIO, PSTAT_PB_PAGE_FIX_ACQUIRE_TIME_10USEC, PSTAT_PB_PAGE_HOLD_ACQUIRE_TIME_10USEC, PSTAT_PB_PAGE_LOCK_ACQUIRE_TIME_10USEC, PSTAT_PB_PAGE_PROMOTE_FAILED, PSTAT_PB_PAGE_PROMOTE_SUCCESS, PSTAT_PB_PAGE_PROMOTE_TOTAL_TIME_10USEC, PSTAT_PB_PRIVATE_COUNT, PSTAT_PB_PRIVATE_QUOTA, PSTAT_PB_VACUUM_EFFICIENCY, PSTAT_PB_VACUUM_FETCH_RATIO, PSTAT_PB_VICT_CAND, PSTAT_PB_WAIT_THREADS_HIGH_PRIO, PSTAT_PB_WAIT_THREADS_LOW_PRIO, PSTAT_PBX_FIX_COUNTERS, PSTAT_PBX_FIX_TIME_COUNTERS, PSTAT_PBX_HOLD_TIME_COUNTERS, PSTAT_PBX_LOCK_TIME_COUNTERS, PSTAT_PBX_PROMOTE_COUNTERS, PSTAT_PBX_PROMOTE_TIME_COUNTERS, PSTAT_PBX_UNFIX_COUNTERS, PSTAT_THREAD_STATS, PSTAT_VACUUM_DATA_HIT_RATIO, SAFE_DIV, pstat_metadata::start_offset, STATIC_INLINE, success(), and cubload::worker_manager_get_stats().
Referenced by perfmon_calc_diff_stats().
Definition at line 1482 of file perf_monitor.c.
References pstat_metadata::f_dump_in_file, i, NULL, perfmon_print_timer_to_file(), PSTAT_COMPLEX_VALUE, PSTAT_COMPUTED_RATIO_VALUE, PSTAT_COUNT, PSTAT_COUNTER_TIMER_VALUE, pstat_metadata::start_offset, and pstat_metadata::stat_name.
void perfmon_server_dump_stats_to_buffer | ( | const UINT64 * | stats, |
char * | buffer, | ||
int | buf_size, | ||
const char * | substr | ||
) |
Definition at line 1372 of file perf_monitor.c.
References assert, pstat_metadata::f_dump_in_buffer, i, NULL, p, perfmon_print_timer_to_buffer(), PSTAT_COMPLEX_VALUE, PSTAT_COMPUTED_RATIO_VALUE, PSTAT_COUNT, PSTAT_COUNTER_TIMER_VALUE, pstat_metadata::start_offset, and pstat_metadata::stat_name.
Referenced by er_log_slow_query(), and perfmon_stat_dump_in_buffer_thread_daemon_stats().
STATIC_INLINE const char * perfmon_stat_cond_type_name | ( | const int | cond_type | ) |
Definition at line 1965 of file perf_monitor.c.
References PERF_CONDITIONAL_FIX, PERF_UNCONDITIONAL_FIX_NO_WAIT, PERF_UNCONDITIONAL_FIX_WITH_WAIT, and STATIC_INLINE.
Referenced by perfmon_stat_dump_in_buffer_fix_page_array_stat(), perfmon_stat_dump_in_buffer_page_lock_time_array_stat(), perfmon_stat_dump_in_file_fix_page_array_stat(), and perfmon_stat_dump_in_file_page_lock_time_array_stat().
|
static |
Definition at line 2097 of file perf_monitor.c.
References assert, NULL, PERF_CONDITIONAL_FIX, PERF_CONDITIONAL_FIX_CNT, PERF_HOLDER_LATCH_CNT, PERF_HOLDER_LATCH_READ, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, PERF_PAGE_CNT, PERF_PAGE_FIX_COUNTERS, PERF_PAGE_FIX_STAT_OFFSET, PERF_PAGE_MODE_CNT, PERF_PAGE_MODE_OLD_LOCK_WAIT, PERF_PAGE_UNKNOWN, perfmon_stat_cond_type_name(), perfmon_stat_holder_latch_name(), perfmon_stat_module_name(), perfmon_stat_page_mode_name(), and perfmon_stat_page_type_name().
Referenced by f_dump_in_buffer_Num_data_page_fix_ext(), and f_dump_in_buffer_Num_dwb_flushed_block_volumes().
|
static |
Definition at line 2847 of file perf_monitor.c.
References assert, NULL, and PERF_DWB_FLUSHED_BLOCK_VOLUMES_CNT.
|
static |
Definition at line 2679 of file perf_monitor.c.
References assert, NULL, PERF_MVCC_SNAPSHOT_COUNTERS, PERF_MVCC_SNAPSHOT_OFFSET, PERF_SNAPSHOT_CNT, PERF_SNAPSHOT_INVISIBLE, PERF_SNAPSHOT_RECORD_INSERTED_VACUUMED, PERF_SNAPSHOT_RECORD_TYPE_CNT, PERF_SNAPSHOT_SATISFIES_DELETE, PERF_SNAPSHOT_VISIBILITY_CNT, perfmon_stat_snapshot_name(), and perfmon_stat_snapshot_record_type().
Referenced by f_dump_in_buffer_Num_mvcc_snapshot_ext().
|
static |
Definition at line 2781 of file perf_monitor.c.
References assert, NA_LOCK, NULL, perfmon_stat_lock_mode_name(), and SCH_M_LOCK.
Referenced by f_dump_in_buffer_Time_obj_lock_acquire_time().
|
static |
Definition at line 2650 of file perf_monitor.c.
References perfmon_stat_dump_in_buffer_page_lock_time_array_stat().
Referenced by f_dump_in_buffer_Time_data_page_fix_acquire_time().
|
static |
Definition at line 2547 of file perf_monitor.c.
References assert, NULL, PERF_HOLDER_LATCH_CNT, PERF_HOLDER_LATCH_READ, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, PERF_PAGE_CNT, PERF_PAGE_HOLD_TIME_COUNTERS, PERF_PAGE_HOLD_TIME_OFFSET, PERF_PAGE_MODE_CNT, PERF_PAGE_MODE_OLD_LOCK_WAIT, PERF_PAGE_UNKNOWN, perfmon_stat_holder_latch_name(), perfmon_stat_module_name(), perfmon_stat_page_mode_name(), and perfmon_stat_page_type_name().
Referenced by f_dump_in_buffer_Time_data_page_hold_acquire_time().
|
static |
Definition at line 2436 of file perf_monitor.c.
References assert, NULL, PERF_CONDITIONAL_FIX, PERF_CONDITIONAL_FIX_CNT, PERF_HOLDER_LATCH_CNT, PERF_HOLDER_LATCH_READ, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, PERF_PAGE_CNT, PERF_PAGE_FIX_COUNTERS, PERF_PAGE_FIX_STAT_OFFSET, PERF_PAGE_MODE_CNT, PERF_PAGE_MODE_OLD_LOCK_WAIT, PERF_PAGE_UNKNOWN, perfmon_stat_cond_type_name(), perfmon_stat_holder_latch_name(), perfmon_stat_module_name(), perfmon_stat_page_mode_name(), and perfmon_stat_page_type_name().
Referenced by f_dump_in_buffer_Time_data_page_lock_acquire_time(), and perfmon_stat_dump_in_buffer_page_fix_time_array_stat().
|
static |
Definition at line 2209 of file perf_monitor.c.
References assert, NULL, PERF_HOLDER_LATCH_CNT, PERF_HOLDER_LATCH_READ, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, PERF_PAGE_CNT, PERF_PAGE_PROMOTE_COUNTERS, PERF_PAGE_PROMOTE_STAT_OFFSET, PERF_PAGE_UNKNOWN, PERF_PROMOTE_CONDITION_CNT, PERF_PROMOTE_ONLY_READER, perfmon_stat_holder_latch_name(), perfmon_stat_module_name(), perfmon_stat_page_type_name(), perfmon_stat_promote_cond_name(), and success().
Referenced by f_dump_in_buffer_Num_data_page_promote_ext(), and f_dump_in_buffer_Num_data_page_promote_time_ext().
|
static |
Definition at line 2919 of file perf_monitor.c.
References assert, NULL, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, and perfmon_stat_module_name().
|
static |
Definition at line 4203 of file perf_monitor.c.
References _er_log_debug(), ARG_FILE_LINE, assert, NULL, ONE_M, perfmon_allocate_values(), perfmon_per_daemon_stat_count(), PERFMON_PORTABLE_DAEMON_COUNT, perfmon_server_dump_stats_to_buffer(), perfmon_thread_daemon_name(), pgbuf_daemons_get_stats(), PSTAT_THREAD_DAEMON_STATS, pstat_metadata::start_offset, and xperfmon_server_copy_global_stats().
Referenced by f_dump_in_buffer_thread_daemon_stats().
|
static |
Definition at line 4022 of file perf_monitor.c.
References assert, NULL, perfmon_stat_thread_stat_name(), and thread_stats_count().
Referenced by f_dump_in_buffer_thread_stats().
|
static |
Definition at line 2323 of file perf_monitor.c.
References assert, NULL, PERF_HOLDER_LATCH_CNT, PERF_HOLDER_LATCH_READ, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, PERF_PAGE_CNT, PERF_PAGE_UNFIX_COUNTERS, PERF_PAGE_UNFIX_STAT_OFFSET, PERF_PAGE_UNKNOWN, perfmon_stat_holder_latch_name(), perfmon_stat_module_name(), and perfmon_stat_page_type_name().
Referenced by f_dump_in_buffer_Num_data_page_unfix_ext().
|
static |
Definition at line 2159 of file perf_monitor.c.
References assert, NULL, PERF_CONDITIONAL_FIX, PERF_CONDITIONAL_FIX_CNT, PERF_HOLDER_LATCH_CNT, PERF_HOLDER_LATCH_READ, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, PERF_PAGE_CNT, PERF_PAGE_FIX_COUNTERS, PERF_PAGE_FIX_STAT_OFFSET, PERF_PAGE_MODE_CNT, PERF_PAGE_MODE_OLD_LOCK_WAIT, PERF_PAGE_UNKNOWN, perfmon_stat_cond_type_name(), perfmon_stat_holder_latch_name(), perfmon_stat_module_name(), perfmon_stat_page_mode_name(), and perfmon_stat_page_type_name().
Referenced by f_dump_in_file_Num_data_page_fix_ext().
|
static |
Definition at line 2888 of file perf_monitor.c.
References assert, NULL, and PERF_DWB_FLUSHED_BLOCK_VOLUMES_CNT.
Referenced by f_dump_in_file_Num_dwb_flushed_block_volumes().
|
static |
Definition at line 2735 of file perf_monitor.c.
References assert, NULL, PERF_MVCC_SNAPSHOT_COUNTERS, PERF_MVCC_SNAPSHOT_OFFSET, PERF_SNAPSHOT_CNT, PERF_SNAPSHOT_INVISIBLE, PERF_SNAPSHOT_RECORD_INSERTED_VACUUMED, PERF_SNAPSHOT_RECORD_TYPE_CNT, PERF_SNAPSHOT_SATISFIES_DELETE, PERF_SNAPSHOT_VISIBILITY_CNT, perfmon_stat_snapshot_name(), and perfmon_stat_snapshot_record_type().
Referenced by f_dump_in_file_Num_mvcc_snapshot_ext().
|
static |
Definition at line 2819 of file perf_monitor.c.
References assert, NA_LOCK, NULL, perfmon_stat_lock_mode_name(), and SCH_M_LOCK.
Referenced by f_dump_in_file_Time_obj_lock_acquire_time().
|
static |
Definition at line 2664 of file perf_monitor.c.
References perfmon_stat_dump_in_file_page_lock_time_array_stat().
Referenced by f_dump_in_file_Time_data_page_fix_acquire_time().
|
static |
Definition at line 2603 of file perf_monitor.c.
References assert, NULL, PERF_HOLDER_LATCH_CNT, PERF_HOLDER_LATCH_READ, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, PERF_PAGE_CNT, PERF_PAGE_HOLD_TIME_COUNTERS, PERF_PAGE_HOLD_TIME_OFFSET, PERF_PAGE_MODE_CNT, PERF_PAGE_MODE_OLD_LOCK_WAIT, PERF_PAGE_UNKNOWN, perfmon_stat_holder_latch_name(), perfmon_stat_module_name(), perfmon_stat_page_mode_name(), and perfmon_stat_page_type_name().
Referenced by f_dump_in_file_Time_data_page_hold_acquire_time().
|
static |
Definition at line 2497 of file perf_monitor.c.
References assert, NULL, PERF_CONDITIONAL_FIX, PERF_CONDITIONAL_FIX_CNT, PERF_HOLDER_LATCH_CNT, PERF_HOLDER_LATCH_READ, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, PERF_PAGE_CNT, PERF_PAGE_FIX_COUNTERS, PERF_PAGE_FIX_STAT_OFFSET, PERF_PAGE_MODE_CNT, PERF_PAGE_MODE_OLD_LOCK_WAIT, PERF_PAGE_UNKNOWN, perfmon_stat_cond_type_name(), perfmon_stat_holder_latch_name(), perfmon_stat_module_name(), perfmon_stat_page_mode_name(), and perfmon_stat_page_type_name().
Referenced by f_dump_in_file_Time_data_page_lock_acquire_time(), and perfmon_stat_dump_in_file_page_fix_time_array_stat().
|
static |
Definition at line 2272 of file perf_monitor.c.
References assert, NULL, PERF_HOLDER_LATCH_CNT, PERF_HOLDER_LATCH_READ, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, PERF_PAGE_CNT, PERF_PAGE_PROMOTE_COUNTERS, PERF_PAGE_PROMOTE_STAT_OFFSET, PERF_PAGE_UNKNOWN, PERF_PROMOTE_CONDITION_CNT, PERF_PROMOTE_ONLY_READER, perfmon_stat_holder_latch_name(), perfmon_stat_module_name(), perfmon_stat_page_type_name(), perfmon_stat_promote_cond_name(), and success().
Referenced by f_dump_in_file_Num_data_page_promote_ext(), and f_dump_in_file_Num_data_page_promote_time_ext().
|
static |
Definition at line 2961 of file perf_monitor.c.
References assert, NULL, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, and perfmon_stat_module_name().
|
static |
Definition at line 4160 of file perf_monitor.c.
References assert, NULL, perfmon_per_daemon_stat_count(), PERFMON_PORTABLE_DAEMON_COUNT, and perfmon_thread_daemon_name().
Referenced by f_dump_in_file_thread_daemon_stats().
|
static |
Definition at line 3980 of file perf_monitor.c.
References assert, NULL, perfmon_stat_thread_stat_name(), and thread_stats_count().
Referenced by f_dump_in_file_thread_stats().
|
static |
Definition at line 2386 of file perf_monitor.c.
References assert, NULL, PERF_HOLDER_LATCH_CNT, PERF_HOLDER_LATCH_READ, PERF_MODULE_CNT, PERF_MODULE_SYSTEM, PERF_PAGE_CNT, PERF_PAGE_UNFIX_COUNTERS, PERF_PAGE_UNFIX_STAT_OFFSET, PERF_PAGE_UNKNOWN, perfmon_stat_holder_latch_name(), perfmon_stat_module_name(), and perfmon_stat_page_type_name().
Referenced by f_dump_in_file_Num_data_page_unfix_ext().
STATIC_INLINE const char * perfmon_stat_holder_latch_name | ( | const int | holder_latch | ) |
Definition at line 1945 of file perf_monitor.c.
References PERF_HOLDER_LATCH_MIXED, PERF_HOLDER_LATCH_READ, PERF_HOLDER_LATCH_WRITE, and STATIC_INLINE.
Referenced by perfmon_stat_dump_in_buffer_fix_page_array_stat(), perfmon_stat_dump_in_buffer_page_hold_time_array_stat(), perfmon_stat_dump_in_buffer_page_lock_time_array_stat(), perfmon_stat_dump_in_buffer_promote_page_array_stat(), perfmon_stat_dump_in_buffer_unfix_page_array_stat(), perfmon_stat_dump_in_file_fix_page_array_stat(), perfmon_stat_dump_in_file_page_hold_time_array_stat(), perfmon_stat_dump_in_file_page_lock_time_array_stat(), perfmon_stat_dump_in_file_promote_page_array_stat(), and perfmon_stat_dump_in_file_unfix_page_array_stat().
STATIC_INLINE const char * perfmon_stat_lock_mode_name | ( | const int | lock_mode | ) |
Definition at line 2038 of file perf_monitor.c.
References INCON_NON_TWO_PHASE_LOCK, IS_LOCK, IX_LOCK, NA_LOCK, NULL_LOCK, S_LOCK, SCH_M_LOCK, SCH_S_LOCK, SIX_LOCK, STATIC_INLINE, U_LOCK, and X_LOCK.
Referenced by perfmon_stat_dump_in_buffer_obj_lock_array_stat(), and perfmon_stat_dump_in_file_obj_lock_array_stat().
STATIC_INLINE const char * perfmon_stat_module_name | ( | const int | module | ) |
Definition at line 1822 of file perf_monitor.c.
References NULL, PERF_MODULE_SYSTEM, PERF_MODULE_USER, PERF_MODULE_VACUUM, STATIC_INLINE, thread_get_thread_entry_info(), TT_VACUUM_MASTER, TT_VACUUM_WORKER, and TT_WORKER.
Referenced by perfmon_stat_dump_in_buffer_fix_page_array_stat(), perfmon_stat_dump_in_buffer_page_hold_time_array_stat(), perfmon_stat_dump_in_buffer_page_lock_time_array_stat(), perfmon_stat_dump_in_buffer_promote_page_array_stat(), perfmon_stat_dump_in_buffer_snapshot_array_stat(), perfmon_stat_dump_in_buffer_unfix_page_array_stat(), perfmon_stat_dump_in_file_fix_page_array_stat(), perfmon_stat_dump_in_file_page_hold_time_array_stat(), perfmon_stat_dump_in_file_page_lock_time_array_stat(), perfmon_stat_dump_in_file_promote_page_array_stat(), perfmon_stat_dump_in_file_snapshot_array_stat(), and perfmon_stat_dump_in_file_unfix_page_array_stat().
STATIC_INLINE const char * perfmon_stat_page_mode_name | ( | const int | page_mode | ) |
Definition at line 1921 of file perf_monitor.c.
References PERF_PAGE_MODE_NEW_LOCK_WAIT, PERF_PAGE_MODE_NEW_NO_WAIT, PERF_PAGE_MODE_OLD_IN_BUFFER, PERF_PAGE_MODE_OLD_LOCK_WAIT, PERF_PAGE_MODE_OLD_NO_WAIT, and STATIC_INLINE.
Referenced by perfmon_stat_dump_in_buffer_fix_page_array_stat(), perfmon_stat_dump_in_buffer_page_hold_time_array_stat(), perfmon_stat_dump_in_buffer_page_lock_time_array_stat(), perfmon_stat_dump_in_file_fix_page_array_stat(), perfmon_stat_dump_in_file_page_hold_time_array_stat(), and perfmon_stat_dump_in_file_page_lock_time_array_stat().
STATIC_INLINE const char * perfmon_stat_page_type_name | ( | const int | page_type | ) |
Definition at line 1871 of file perf_monitor.c.
References PERF_PAGE_AREA, PERF_PAGE_BTREE_GENERIC, PERF_PAGE_BTREE_LEAF, PERF_PAGE_BTREE_NONLEAF, PERF_PAGE_BTREE_OVF, PERF_PAGE_BTREE_ROOT, PERF_PAGE_CATALOG, PERF_PAGE_DROPPED_FILES, PERF_PAGE_EHASH, PERF_PAGE_FTAB, PERF_PAGE_HEAP, PERF_PAGE_LOG, PERF_PAGE_OVERFLOW, PERF_PAGE_QRESULT, PERF_PAGE_UNKNOWN, PERF_PAGE_VACUUM_DATA, PERF_PAGE_VOLBITMAP, PERF_PAGE_VOLHEADER, and STATIC_INLINE.
Referenced by perfmon_stat_dump_in_buffer_fix_page_array_stat(), perfmon_stat_dump_in_buffer_page_hold_time_array_stat(), perfmon_stat_dump_in_buffer_page_lock_time_array_stat(), perfmon_stat_dump_in_buffer_promote_page_array_stat(), perfmon_stat_dump_in_buffer_unfix_page_array_stat(), perfmon_stat_dump_in_file_fix_page_array_stat(), perfmon_stat_dump_in_file_page_hold_time_array_stat(), perfmon_stat_dump_in_file_page_lock_time_array_stat(), perfmon_stat_dump_in_file_promote_page_array_stat(), and perfmon_stat_dump_in_file_unfix_page_array_stat().
STATIC_INLINE const char * perfmon_stat_promote_cond_name | ( | const int | cond_type | ) |
Definition at line 2074 of file perf_monitor.c.
References PERF_PROMOTE_ONLY_READER, and PERF_PROMOTE_SHARED_READER.
Referenced by perfmon_stat_dump_in_buffer_promote_page_array_stat(), and perfmon_stat_dump_in_file_promote_page_array_stat().
STATIC_INLINE const char * perfmon_stat_snapshot_name | ( | const int | snapshot | ) |
Definition at line 1985 of file perf_monitor.c.
References PERF_SNAPSHOT_SATISFIES_DELETE, PERF_SNAPSHOT_SATISFIES_DIRTY, PERF_SNAPSHOT_SATISFIES_SNAPSHOT, PERF_SNAPSHOT_SATISFIES_VACUUM, and STATIC_INLINE.
Referenced by perfmon_stat_dump_in_buffer_mvcc_snapshot_array_stat(), and perfmon_stat_dump_in_file_mvcc_snapshot_array_stat().
STATIC_INLINE const char * perfmon_stat_snapshot_record_type | ( | const int | rec_type | ) |
Definition at line 2007 of file perf_monitor.c.
References PERF_SNAPSHOT_RECORD_DELETED_COMMITTED, PERF_SNAPSHOT_RECORD_DELETED_COMMITTED_LOST, PERF_SNAPSHOT_RECORD_DELETED_CURR_TRAN, PERF_SNAPSHOT_RECORD_DELETED_OTHER_TRAN, PERF_SNAPSHOT_RECORD_INSERTED_COMMITED, PERF_SNAPSHOT_RECORD_INSERTED_COMMITED_LOST, PERF_SNAPSHOT_RECORD_INSERTED_CURR_TRAN, PERF_SNAPSHOT_RECORD_INSERTED_DELETED, PERF_SNAPSHOT_RECORD_INSERTED_OTHER_TRAN, PERF_SNAPSHOT_RECORD_INSERTED_VACUUMED, and STATIC_INLINE.
Referenced by perfmon_stat_dump_in_buffer_mvcc_snapshot_array_stat(), and perfmon_stat_dump_in_file_mvcc_snapshot_array_stat().
|
static |
Definition at line 3951 of file perf_monitor.c.
Referenced by perfmon_stat_dump_in_buffer_thread_stats(), and perfmon_stat_dump_in_file_thread_stats().
|
static |
Definition at line 4124 of file perf_monitor.c.
References assert.
Referenced by perfmon_stat_dump_in_buffer_thread_daemon_stats(), and perfmon_stat_dump_in_file_thread_daemon_stats().
|
static |
Definition at line 4118 of file perf_monitor.c.
References perfmon_per_daemon_stat_count().
Referenced by f_load_thread_daemon_stats().
char* perfmon_unpack_stats | ( | char * | buf, |
UINT64 * | stats | ||
) |
Definition at line 3777 of file perf_monitor.c.
References i, pstat_global::n_stat_values, OR_GET_INT64, OR_INT64_SIZE, and STATIC_INLINE.
Referenced by perfmon_server_copy_global_stats(), and perfmon_server_copy_stats().
static size_t thread_stats_count | ( | void | ) |
Definition at line 186 of file perf_monitor.c.
Referenced by f_load_thread_stats(), perfmon_stat_dump_in_buffer_thread_stats(), and perfmon_stat_dump_in_file_thread_stats().
|
static |
Definition at line 4089 of file perf_monitor.c.
Referenced by perfmon_stat_dump_in_buffer_thread_daemon_stats(), and perfmon_stat_dump_in_file_thread_daemon_stats().
|
static |
Definition at line 4080 of file perf_monitor.c.
|
static |
Definition at line 4077 of file perf_monitor.c.
Referenced by perfmon_per_daemon_stat_count().
|
static |
Definition at line 4054 of file perf_monitor.c.
|
static |
Definition at line 3916 of file perf_monitor.c.
const char* perfmon_Portable_worker_stat_names[] |
Definition at line 3897 of file perf_monitor.c.