Browse Source

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-c4023f1b3aa9
svn/tags/lighttpd-1.4.11
Jan Kneschke 16 years ago
parent
commit
e2f4ccd343
  1. 15
      src/base.h
  2. 2
      src/server.c

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;

2
src/server.c

@ -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…
Cancel
Save