69 "SBuf stats:\nnumber of allocations: "
72 "\nlive references: "
74 "\nclearing operations: "
75 "\nappend operations: "
76 "\nmove operations: "
81 "\ncomparisons not requiring data-scan: "
82 "\ncopy-out ops: "
83 "\nraw access to memory: "
85 "\nchop operations: "
86 "\ntrim operations: "
90 "\nCOW replaced with memmove(3): "
91 "\nCOW requiring an empty buffer allocation: "
92 "\nCOW requiring allocation and copying: "
93 "\naverage store share factor: "
!= 0 ? static_cast<float>
: 0) <<
Various MemBlob class-wide statistics.
number of MemBlob instances currently alive
static const MemBlobStats & GetStats()
obtain a const view of class-wide statistics
number of trim operations
number of append operations
std::ostream & dump(std::ostream &os) const
Dump statistics to an ostream.
number of cow() calls requiring just a memmove(3) inside an old buffer
number of c_str() terminations
SBufStats & operator+=(const SBufStats &)
number of move constructions/assignments
number of cow() calls requiring just a new empty buffer
number of accesses to raw contents
number of no-copy assignment operations
static void RecordMemBlobSizeAtDestruct(size_t)
Record the size a MemBlob had when it was destructed.
number of cow() calls requiring copying into a new buffer
number of calls to at() and operator
number of calls to setAt
number of toUpper and toLower operations
number of cow() calls requiring no expensive operations
static SizeRecorder SBufSizeAtDestructRecorder
collects statistics about SBuf sizes at SBuf destruction time
number of comparison operations not requiring data scan
number of chop operations
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
number of write operations to ostreams
number of comparison operations requiring data scan
number of calls to SBuf copy-constructor
number of calls to SBuf constructors
number of find operations
number of currently-allocated SBuf
number of data-copies to other forms of buffers
number of copy-allocations from c-strings
function for collecting detailed size-related statistics