-
Poul-Henning Kamp authored
with -smalloc stats: Split SMA relevant fields into their own MAC_STAT_SMA macros, and make it possible to include stat_field.h without all MAC_STAT* macrods defined. Move SMA relevant fields from struct varnish_stats to their own varnish_stats_sma. Teach varnishstat to enumerate fields from a varnish_stats_sma. (This code looks like it should/could be much more general, and probably libvarnisapi candidate). For now only curses mode updated. In storage_malloc.c, allocate a shm_alloc for a struct varnish_stats_sma for each instance (in ->ready(), because we have no shm during arg processing in ->init(), update the counters therein. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4855 d4fa192b-c00b-0410-8231-f00ffab90ce4
75b40a64