Various MemBlob class-wide statistics. More...

#include <MemBlob.h>

Collaboration diagram for MemBlobStats:

Public Member Functions

std::ostream & dump (std::ostream &os) const
 dumps class-wide statistics More...
 
MemBlobStatsoperator+= (const MemBlobStats &)
 

Public Attributes

uint64_t alloc = 0
 number of MemBlob instances created so far More...
 
uint64_t live = 0
 number of MemBlob instances currently alive More...
 
uint64_t append = 0
 number of MemBlob::append() calls More...
 
uint64_t liveBytes = 0
 the total size of currently allocated storage More...
 

Detailed Description

Definition at line 19 of file MemBlob.h.

Member Function Documentation

◆ dump()

std::ostream & MemBlobStats::dump ( std::ostream &  os) const

Definition at line 33 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 22 of file MemBlob.cc.

References alloc, append, live, and liveBytes.

Member Data Documentation

◆ alloc

uint64_t MemBlobStats::alloc = 0

Definition at line 28 of file MemBlob.h.

Referenced by dump(), and operator+=().

◆ append

uint64_t MemBlobStats::append = 0

Definition at line 30 of file MemBlob.h.

Referenced by dump(), and operator+=().

◆ live

uint64_t MemBlobStats::live = 0

Definition at line 29 of file MemBlob.h.

Referenced by dump(), SBufStats::dump(), and operator+=().

◆ liveBytes

uint64_t MemBlobStats::liveBytes = 0

Definition at line 31 of file MemBlob.h.

Referenced by dump(), and operator+=().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous