]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/sbuf/DetailedStats.cc
2 * Copyright (C) 1996-2017 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.
10 #include "sbuf/DetailedStats.h"
14 * Implementation note: the purpose of this construct is to avoid adding
15 * external dependencies to the SBuf code
20 StatHist
*stats
= new StatHist
;
21 stats
->logInit(100, 30.0, 128000.0);
26 collectSBufDestructTimeStats()
28 static StatHist
*stats
= newStatHist();
33 collectMemBlobDestructTimeStats()
35 static StatHist
*stats
= newStatHist();
40 recordSBufSizeAtDestruct(SBuf::size_type sz
)
42 collectSBufDestructTimeStats().count(static_cast<double>(sz
));
46 recordMemBlobSizeAtDestruct(SBuf::size_type sz
)
48 collectMemBlobDestructTimeStats().count(static_cast<double>(sz
));