9#ifndef SQUID_SBUF_STATS_H
10#define SQUID_SBUF_STATS_H
25 std::ostream&
dump(std::ostream &os)
const;
uint64_t trim
number of trim operations
uint64_t append
number of append operations
std::ostream & dump(std::ostream &os) const
Dump statistics to an ostream.
uint64_t cowShift
number of cow() calls requiring just a memmove(3) inside an old buffer
uint64_t nulTerminate
number of c_str() terminations
SBufStats & operator+=(const SBufStats &)
uint64_t moves
number of move constructions/assignments
uint64_t cowJustAlloc
number of cow() calls requiring just a new empty buffer
uint64_t rawAccess
number of accesses to raw contents
uint64_t assignFast
number of no-copy assignment operations
static void RecordMemBlobSizeAtDestruct(size_t)
Record the size a MemBlob had when it was destructed.
uint64_t cowAllocCopy
number of cow() calls requiring copying into a new buffer
uint64_t getChar
number of calls to at() and operator[]
uint64_t setChar
number of calls to setAt
uint64_t caseChange
number of toUpper and toLower operations
uint64_t cowAvoided
number of cow() calls requiring no expensive operations
static SizeRecorder SBufSizeAtDestructRecorder
collects statistics about SBuf sizes at SBuf destruction time
uint64_t compareFast
number of comparison operations not requiring data scan
uint64_t chop
number of chop operations
uint64_t clear
number of clear operations
static void RecordSBufSizeAtDestruct(size_t)
Record the size a SBuf had when it was destructed.
static SizeRecorder MemBlobSizeAtDestructRecorder
collects statistics about MemBlob capacity at MemBlob destruction time
uint64_t toStream
number of write operations to ostreams
uint64_t compareSlow
number of comparison operations requiring data scan
uint64_t allocCopy
number of calls to SBuf copy-constructor
uint64_t alloc
number of calls to SBuf constructors
uint64_t find
number of find operations
uint64_t live
number of currently-allocated SBuf
uint64_t copyOut
number of data-copies to other forms of buffers
uint64_t allocFromCString
number of copy-allocations from c-strings
void(*)(size_t) SizeRecorder
function for collecting detailed size-related statistics