增加HTTP业务层和缓存运行状态统计。业务层状态输出到tfe.fieldstat,缓存输出到cache.fieldstat。增加缓存开关。
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
#pragma once
|
||||
#include <MESA/field_stat2.h>
|
||||
#include <event2/event.h>
|
||||
|
||||
struct tfe_proxy;
|
||||
|
||||
const char * tfe_proxy_default_conffile();
|
||||
const char * tfe_proxy_default_logger();
|
||||
unsigned int tfe_proxy_get_thread_count();
|
||||
struct event_base * tfe_proxy_get_evbase(unsigned int thread_id);
|
||||
unsigned int tfe_proxy_get_work_thread_count();
|
||||
struct event_base * tfe_proxy_get_work_thread_evbase(unsigned int thread_id);
|
||||
struct event_base * tfe_proxy_get_gc_evbase(void);
|
||||
screen_stat_handle_t tfe_proxy_get_fs_handle(void);
|
||||
|
||||
|
||||
@@ -73,9 +73,10 @@ do { MESA_handle_runtime_log(handler, RLOG_LV_DEBUG, "tfe", fmt, ##__VA_ARGS__);
|
||||
})
|
||||
#endif
|
||||
|
||||
#define ATOMIC_INC(x) __atomic_fetch_add(x,1,__ATOMIC_RELAXED)
|
||||
#define ATOMIC_DEC(x) __atomic_fetch_sub(x,1,__ATOMIC_RELAXED)
|
||||
#define ATOMIC_READ(x) __atomic_fetch_add(x,0,__ATOMIC_RELAXED)
|
||||
#define ATOMIC_INC(x) __atomic_fetch_add(x,1,__ATOMIC_RELAXED)
|
||||
#define ATOMIC_DEC(x) __atomic_fetch_sub(x,1,__ATOMIC_RELAXED)
|
||||
#define ATOMIC_READ(x) __atomic_fetch_add(x,0,__ATOMIC_RELAXED)
|
||||
#define ATOMIC_ADD(x, y) __atomic_fetch_add(x,y,__ATOMIC_RELAXED)
|
||||
|
||||
|
||||
#ifndef MAX
|
||||
|
||||
Reference in New Issue
Block a user