Various MemBlob class-wide statistics. More...

#include <MemBlob.h>

Collaboration diagram for MemBlobStats:

Public Member Functions

 MemBlobStats ()
 
std::ostream & dump (std::ostream &os) const
 dumps class-wide statistics More...
 
MemBlobStatsoperator+= (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

Definition at line 19 of file MemBlob.h.

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)

Definition at line 26 of file MemBlob.cc.

References alloc, append, live, and liveBytes.

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:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors