[FEATURE]fieldstat3 -> fieldstat4
This commit is contained in:
@@ -25,7 +25,7 @@ extern "C"
|
||||
#include <openssl/md5.h>
|
||||
|
||||
#include "log/log.h"
|
||||
#include "fieldstat.h"
|
||||
#include "fieldstat/fieldstat_easy.h"
|
||||
#include "maat_command.h"
|
||||
#include "maat_limits.h"
|
||||
#include "maat.h"
|
||||
@@ -140,17 +140,17 @@ struct maat_options {
|
||||
|
||||
struct maat_stat {
|
||||
char stat_file[PATH_MAX];
|
||||
struct fieldstat_instance *fs_handle;
|
||||
int total_stat_id[MAX_MAAT_STAT_NUM];
|
||||
int fs_status_id[MAX_MAAT_STAT_NUM];
|
||||
int fs_column_id[MAX_TABLE_NUM][MAX_MAAT_STAT_NUM];
|
||||
struct fieldstat_easy *fs_handle;
|
||||
int g_metric_id[MAX_MAAT_STAT_NUM];
|
||||
int fs_column_id[MAX_MAAT_STAT_NUM];
|
||||
char tag_value[MAX_TABLE_NUM][MAX_NAME_STR_LEN];
|
||||
char sum_tag[MAX_NAME_STR_LEN];
|
||||
struct log_handle *logger;
|
||||
struct table_manager *ref_tbl_mgr;
|
||||
struct maat_garbage_bin *ref_garbage_bin;
|
||||
size_t nr_worker_thread;
|
||||
int cmd_q_cnt;
|
||||
|
||||
|
||||
long long *thread_call_cnt;
|
||||
long long *stream_cnt;
|
||||
long long *hit_compile_cnt;
|
||||
|
||||
@@ -23,10 +23,11 @@ struct maat_stat *maat_stat_new(const char *stat_file, size_t max_thread_num,
|
||||
|
||||
void maat_stat_free(struct maat_stat *stat);
|
||||
|
||||
int maat_stat_init(struct maat_stat *stat, struct table_manager *tbl_mgr,
|
||||
struct maat_garbage_bin *garbage_bin);
|
||||
int maat_stat_init(struct maat_stat *stat, struct table_manager *tbl_mgr,
|
||||
struct maat_garbage_bin *garbage_bin);
|
||||
|
||||
void maat_stat_output(struct maat_stat *stat, long long maat_version, int perf_on);
|
||||
void maat_stat_output(struct maat_stat *stat, struct table_manager *tbl_mgr,
|
||||
long long maat_version, int perf_on);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -107,6 +107,8 @@ long long table_manager_runtime_rule_count(struct table_manager *tbl_mgr, int ta
|
||||
|
||||
long long table_manager_runtime_scan_times(struct table_manager *tbl_mgr, int table_id);
|
||||
|
||||
long long table_manager_runtime_hit_times(struct table_manager *tbl_mgr, int table_id);
|
||||
|
||||
long long table_manager_runtime_scan_cpu_time(struct table_manager *tbl_mgr, int table_id);
|
||||
|
||||
long long table_manager_runtime_hit_item_num(struct table_manager *tbl_mgr, int table_id);
|
||||
|
||||
Reference in New Issue
Block a user