added internals for the statistics framework
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@899 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.11
parent
44cef4913a
commit
e2f4ccd343
15
src/base.h
15
src/base.h
|
@ -559,6 +559,21 @@ typedef struct server {
|
|||
connections *fdwaitqueue;
|
||||
|
||||
stat_cache *stat_cache;
|
||||
|
||||
/**
|
||||
* The status array can carry all the status information you want
|
||||
* the key to the array is <module-prefix>.<name>
|
||||
* and the values are counters
|
||||
*
|
||||
* example:
|
||||
* fastcgi.backends = 10
|
||||
* fastcgi.active-backends = 6
|
||||
* fastcgi.backend.<key>.load = 24
|
||||
* fastcgi.backend.<key>....
|
||||
*
|
||||
* fastcgi.backend.<key>.disconnects = ...
|
||||
*/
|
||||
array *status;
|
||||
|
||||
fdevent_handler_t event_handler;
|
||||
|
||||
|
|
|
@ -148,6 +148,7 @@ static server *server_init(void) {
|
|||
|
||||
CLEAN(config_context);
|
||||
CLEAN(config_touched);
|
||||
CLEAN(status);
|
||||
#undef CLEAN
|
||||
|
||||
for (i = 0; i < FILE_CACHE_MAX; i++) {
|
||||
|
@ -245,6 +246,7 @@ static void server_free(server *srv) {
|
|||
|
||||
CLEAN(config_context);
|
||||
CLEAN(config_touched);
|
||||
CLEAN(status);
|
||||
#undef CLEAN
|
||||
|
||||
joblist_free(srv, srv->joblist);
|
||||
|
|
Loading…
Reference in New Issue