Various MemBlob class-wide statistics. More...
#include <MemBlob.h>
Public Member Functions | |
MemBlobStats () | |
std::ostream & | dump (std::ostream &os) const |
dumps class-wide statistics More... | |
MemBlobStats & | operator+= (const MemBlobStats &) |
Public Attributes | |
uint64_t | alloc |
number of MemBlob instances created so far More... | |
uint64_t | live |
number of MemBlob instances currently alive More... | |
uint64_t | append |
number of MemBlob::append() calls More... | |
uint64_t | liveBytes |
the total size of currently allocated storage More... | |
Detailed Description
Constructor & Destructor Documentation
◆ MemBlobStats()
MemBlobStats::MemBlobStats | ( | ) |
Definition at line 22 of file MemBlob.cc.
Member Function Documentation
◆ dump()
std::ostream & MemBlobStats::dump | ( | std::ostream & | os | ) | const |
Definition at line 37 of file MemBlob.cc.
References alloc, append, live, and liveBytes.
Referenced by SBufStatsAction::dump(), and TestSBuf::testDumpStats().
◆ operator+=()
MemBlobStats & MemBlobStats::operator+= | ( | const MemBlobStats & | s | ) |
Member Data Documentation
◆ alloc
uint64_t MemBlobStats::alloc |
Definition at line 30 of file MemBlob.h.
Referenced by dump(), MemBlob::memAlloc(), and operator+=().
◆ append
uint64_t MemBlobStats::append |
Definition at line 32 of file MemBlob.h.
Referenced by MemBlob::append(), MemBlob::appended(), dump(), and operator+=().
◆ live
uint64_t MemBlobStats::live |
Definition at line 31 of file MemBlob.h.
Referenced by MemBlob::~MemBlob(), dump(), SBufStats::dump(), MemBlob::memAlloc(), and operator+=().
◆ liveBytes
uint64_t MemBlobStats::liveBytes |
Definition at line 33 of file MemBlob.h.
Referenced by MemBlob::~MemBlob(), dump(), MemBlob::memAlloc(), and operator+=().
The documentation for this class was generated from the following files:
- src/sbuf/MemBlob.h
- src/sbuf/MemBlob.cc