]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
ef57eb7b | 2 | * Copyright (C) 1996-2016 The Squid Software Foundation and contributors |
bbc27441 AJ |
3 | * |
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. | |
7 | */ | |
ff1eb053 FC |
8 | |
9 | #ifndef SQUID_SBUFDETAILEDSTATS_H | |
10 | #define SQUID_SBUFDETAILEDSTATS_H | |
11 | ||
12 | #include "SBuf.h" | |
13 | ||
14 | class StatHist; | |
15 | ||
16 | /// Record the size a SBuf had when it was destructed | |
17 | void recordSBufSizeAtDestruct(SBuf::size_type sz); | |
18 | ||
19 | /** Collect the SBuf size-at-destruct-time histogram | |
20 | * | |
21 | * \note the returned StatHist object must not be freed | |
22 | */ | |
23 | const StatHist * collectSBufDestructTimeStats(); | |
24 | ||
25 | /// Record the size a MemBlob had when it was destructed | |
26 | void recordMemBlobSizeAtDestruct(MemBlob::size_type sz); | |
27 | ||
28 | /** Collect the MemBlob size-at-destruct-time histogram | |
29 | * | |
30 | * \note the returned StatHist object must not be freed | |
31 | */ | |
32 | const StatHist * collectMemBlobDestructTimeStats(); | |
33 | ||
34 | #endif /* SQUID_SBUFDETAILEDSTATS_H */ | |
f53969cc | 35 |