]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/HttpHeaderStat.h
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef HTTPHEADERSTAT_H_
10 #define HTTPHEADERSTAT_H_
14 /// HTTP per header statistics
27 hdrUCountDistr
.enumInit(32); /* not a real enum */
28 fieldTypeDistr
.enumInit(HDR_ENUM_END
);
29 ccTypeDistr
.enumInit(CC_ENUM_END
);
30 scTypeDistr
.enumInit(SC_ENUM_END
);
33 HttpHeaderStat(const char *aLabel
, HttpHeaderMask
*aMask
) :
43 hdrUCountDistr
.enumInit(32); /* not a real enum */
44 fieldTypeDistr
.enumInit(HDR_ENUM_END
);
45 ccTypeDistr
.enumInit(CC_ENUM_END
);
46 scTypeDistr
.enumInit(SC_ENUM_END
);
49 // nothing to destruct as label is a pointer to global const string
50 // and owner_mask is a pointer to global static array
54 HttpHeaderMask
*owner_mask
;
56 StatHist hdrUCountDistr
;
57 StatHist fieldTypeDistr
;
65 int busyDestroyedCount
;
68 #endif /* HTTPHEADERSTAT_H_ */