Commit 99cff3e9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add two stats counters, counting number of gzip and gunzip operations.

(fix a typo in previous commit)
parent e9b315e3
...@@ -160,6 +160,7 @@ VGZ_NewUngzip(struct sess *sp, const char *id) ...@@ -160,6 +160,7 @@ VGZ_NewUngzip(struct sess *sp, const char *id)
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC); CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
vg = vgz_alloc_vgz(sp, id); vg = vgz_alloc_vgz(sp, id);
VSC_main->n_gunzip++;
/* /*
* Max memory usage according to zonf.h: * Max memory usage according to zonf.h:
...@@ -179,6 +180,7 @@ VGZ_NewGzip(struct sess *sp, const char *id) ...@@ -179,6 +180,7 @@ VGZ_NewGzip(struct sess *sp, const char *id)
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC); CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
vg = vgz_alloc_vgz(sp, id); vg = vgz_alloc_vgz(sp, id);
VSC_main->n_gzip++;
/* /*
* From zconf.h: * From zconf.h:
......
...@@ -253,7 +253,7 @@ res_WriteGunzipObj(struct sess *sp) ...@@ -253,7 +253,7 @@ res_WriteGunzipObj(struct sess *sp)
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC); CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
vg = VGZ_NewUngzip(sp, "U R -"); vg = VGZ_NewUngzip(sp, "U D -");
VTAILQ_FOREACH(st, &sp->obj->store, list) { VTAILQ_FOREACH(st, &sp->obj->store, list) {
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC); CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
......
...@@ -154,9 +154,11 @@ VSC_F(dir_dns_failed, uint64_t, 0, 'a', "DNS director failed lookups") ...@@ -154,9 +154,11 @@ VSC_F(dir_dns_failed, uint64_t, 0, 'a', "DNS director failed lookups")
VSC_F(dir_dns_hit, uint64_t, 0, 'a', "DNS director cached lookups hit") VSC_F(dir_dns_hit, uint64_t, 0, 'a', "DNS director cached lookups hit")
VSC_F(dir_dns_cache_full, uint64_t, 0, 'a', "DNS director full dnscache") VSC_F(dir_dns_cache_full, uint64_t, 0, 'a', "DNS director full dnscache")
VSC_F(vmods, uint64_t, 0, 'i', "Loaded VMODs") VSC_F(vmods, uint64_t, 0, 'i', "Loaded VMODs")
VSC_F(n_gzip, uint64_t, 0, 'a', "Gzip operations")
VSC_F(n_gunzip, uint64_t, 0, 'a', "Gunzip operations")
#endif #endif
/**********************************************************************/ /**********************************************************************/
......
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