Go to the documentation of this file.
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) <<
number of write operations to ostreams
number of calls to SBuf constructors
number of chop operations
SBufStats & operator+=(const SBufStats &)
number of comparison operations not requiring data scan
number of currently-allocated SBuf
number of append operations
number of trim operations
number of cow() calls requiring just a memmove(3) inside an old buffer
number of no-copy assignment operations
number of c_str() terminations
static const MemBlobStats & GetStats()
obtain a const view of class-wide statistics
static SizeRecorder SBufSizeAtDestructRecorder
collects statistics about SBuf sizes at SBuf destruction time
number of MemBlob instances currently alive
function for collecting detailed size-related statistics
number of accesses to raw contents
number of cow() calls requiring just a new empty buffer
static void RecordMemBlobSizeAtDestruct(size_t)
Record the size a MemBlob had when it was destructed.
number of cow() calls requiring no expensive operations
static SizeRecorder MemBlobSizeAtDestructRecorder
collects statistics about MemBlob capacity at MemBlob destruction time
number of toUpper and toLower operations
number of find operations
Various MemBlob class-wide statistics.
number of clear operations
number of cow() calls requiring copying into a new buffer
number of calls to SBuf copy-constructor
number of copy-allocations from c-strings
std::ostream & dump(std::ostream &os) const
Dump statistics to an ostream.
number of comparison operations requiring data scan
number of calls to setAt
number of calls to at() and operator
static void RecordSBufSizeAtDestruct(size_t)
Record the size a SBuf had when it was destructed.
number of move constructions/assignments
number of data-copies to other forms of buffers