Commit 0046bbd4 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Count backend requests.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1729 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f23826a7
......@@ -286,6 +286,9 @@ Fetch(struct sess *sp)
return (1);
}
/* XXX is this the right place? */
VSL_stats->backend_req++;
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->wrk, WORKER_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
......
......@@ -89,3 +89,5 @@ MAC_STAT(sm_nreq, uint64_t, 'a', "allocator requests")
MAC_STAT(sm_nobj, uint64_t, 'i', "outstanding allocations")
MAC_STAT(sm_balloc, uint64_t, 'i', "bytes allocated")
MAC_STAT(sm_bfree, uint64_t, 'i', "bytes free")
MAC_STAT(backend_req, uint64_t, 'a', "Backend requests made")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment