mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-18 11:40:50 +00:00
REORG: stats: define stats-proxy source module
Create a new module stats-proxy. Move stats functions related to proxies list looping in it. This allows to reduce stats source file dividing its size by half.
This commit is contained in:
parent
271def959c
commit
f0644d1bd7
3
Makefile
3
Makefile
@ -975,7 +975,8 @@ OBJS += src/mux_h2.o src/mux_fcgi.o src/mux_h1.o src/tcpcheck.o \
|
||||
src/dynbuf.o src/wdt.o src/pipe.o src/init.o src/http_acl.o \
|
||||
src/hpack-huff.o src/hpack-enc.o src/dict.o src/freq_ctr.o \
|
||||
src/ebtree.o src/hash.o src/dgram.o src/version.o src/proto_rhttp.o \
|
||||
src/guid.o src/stats-html.o src/stats-json.o src/stats-file.o
|
||||
src/guid.o src/stats-html.o src/stats-json.o src/stats-file.o \
|
||||
src/stats-proxy.o
|
||||
|
||||
ifneq ($(TRACE),)
|
||||
OBJS += src/calltrace.o
|
||||
|
10
include/haproxy/stats-proxy.h
Normal file
10
include/haproxy/stats-proxy.h
Normal file
@ -0,0 +1,10 @@
|
||||
#ifndef _HAPROXY_STATS_PROXY_H
|
||||
#define _HAPROXY_STATS_PROXY_H
|
||||
|
||||
struct buffer;
|
||||
struct htx;
|
||||
struct stconn;
|
||||
|
||||
int stats_dump_proxies(struct stconn *sc, struct buffer *buf, struct htx *htx);
|
||||
|
||||
#endif /* _HAPROXY_STATS_PROXY_H */
|
@ -46,11 +46,13 @@ extern struct list stats_module_list[];
|
||||
extern THREAD_LOCAL struct field stat_line_info[];
|
||||
extern THREAD_LOCAL struct field *stat_lines[];
|
||||
extern struct name_desc *stat_cols[STATS_DOMAIN_COUNT];
|
||||
extern size_t stat_cols_len[STATS_DOMAIN_COUNT];
|
||||
|
||||
int generate_stat_tree(struct eb_root *st_tree, const struct stat_col cols[]);
|
||||
|
||||
struct htx;
|
||||
int stats_putchk(struct appctx *appctx, struct buffer *buf, struct htx *htx);
|
||||
int stats_is_full(struct appctx *appctx, struct buffer *buf, struct htx *htx);
|
||||
|
||||
const char *stats_scope_ptr(struct appctx *appctx);
|
||||
|
||||
|
1593
src/stats-proxy.c
Normal file
1593
src/stats-proxy.c
Normal file
File diff suppressed because it is too large
Load Diff
1581
src/stats.c
1581
src/stats.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user