#include <Stats.h>

Collaboration diagram for SBufStats:

Public Member Functions

std::ostream & dump (std::ostream &os) const
 Dump statistics to an ostream. More...
 
SBufStatsoperator+= (const SBufStats &)
 

Public Attributes

uint64_t alloc = 0
 number of calls to SBuf constructors More...
 
uint64_t allocCopy = 0
 number of calls to SBuf copy-constructor More...
 
uint64_t allocFromCString = 0
 number of copy-allocations from c-strings More...
 
uint64_t assignFast = 0
 number of no-copy assignment operations More...
 
uint64_t clear = 0
 number of clear operations More...
 
uint64_t append = 0
 number of append operations More...
 
uint64_t moves = 0
 number of move constructions/assignments More...
 
uint64_t toStream = 0
 number of write operations to ostreams More...
 
uint64_t setChar = 0
 number of calls to setAt More...
 
uint64_t getChar = 0
 number of calls to at() and operator[] More...
 
uint64_t compareSlow = 0
 number of comparison operations requiring data scan More...
 
uint64_t compareFast = 0
 number of comparison operations not requiring data scan More...
 
uint64_t copyOut = 0
 number of data-copies to other forms of buffers More...
 
uint64_t rawAccess = 0
 number of accesses to raw contents More...
 
uint64_t nulTerminate = 0
 number of c_str() terminations More...
 
uint64_t chop = 0
 number of chop operations More...
 
uint64_t trim = 0
 number of trim operations More...
 
uint64_t find = 0
 number of find operations More...
 
uint64_t caseChange = 0
 number of toUpper and toLower operations More...
 
uint64_t cowFast = 0
 number of cow operations not actually requiring a copy More...
 
uint64_t cowSlow = 0
 number of cow operations requiring a copy More...
 
uint64_t live = 0
 number of currently-allocated SBuf More...
 

Detailed Description

Container for various SBuf class-wide statistics.

The stats are not completely accurate; they're mostly meant to understand whether Squid is leaking resources and whether SBuf is paying off the expected gains.

Definition at line 21 of file Stats.h.

Member Function Documentation

◆ dump()

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

◆ operator+=()

SBufStats & SBufStats::operator+= ( const SBufStats ss)

Member Data Documentation

◆ alloc

uint64_t SBufStats::alloc = 0

Definition at line 30 of file Stats.h.

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

◆ allocCopy

uint64_t SBufStats::allocCopy = 0

Definition at line 31 of file Stats.h.

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

◆ allocFromCString

uint64_t SBufStats::allocFromCString = 0

Definition at line 32 of file Stats.h.

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

◆ append

uint64_t SBufStats::append = 0

Definition at line 35 of file Stats.h.

Referenced by dump(), SBuf::lowAppend(), operator+=(), and SBuf::vappendf().

◆ assignFast

uint64_t SBufStats::assignFast = 0

Definition at line 33 of file Stats.h.

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

◆ caseChange

uint64_t SBufStats::caseChange = 0

Definition at line 48 of file Stats.h.

Referenced by dump(), operator+=(), SBuf::toLower(), and SBuf::toUpper().

◆ chop

uint64_t SBufStats::chop = 0

Definition at line 45 of file Stats.h.

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

◆ clear

uint64_t SBufStats::clear = 0

Definition at line 34 of file Stats.h.

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

◆ compareFast

uint64_t SBufStats::compareFast = 0

Definition at line 41 of file Stats.h.

Referenced by SBuf::compare(), dump(), operator+=(), SBuf::operator==(), and SBuf::startsWith().

◆ compareSlow

uint64_t SBufStats::compareSlow = 0

Definition at line 40 of file Stats.h.

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

◆ copyOut

uint64_t SBufStats::copyOut = 0

Definition at line 42 of file Stats.h.

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

◆ cowFast

uint64_t SBufStats::cowFast = 0

Definition at line 49 of file Stats.h.

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

◆ cowSlow

uint64_t SBufStats::cowSlow = 0

Definition at line 50 of file Stats.h.

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

◆ find

uint64_t SBufStats::find = 0

◆ getChar

uint64_t SBufStats::getChar = 0

Definition at line 39 of file Stats.h.

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

◆ live

uint64_t SBufStats::live = 0

Definition at line 51 of file Stats.h.

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

◆ moves

uint64_t SBufStats::moves = 0

Definition at line 36 of file Stats.h.

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

◆ nulTerminate

uint64_t SBufStats::nulTerminate = 0

Definition at line 44 of file Stats.h.

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

◆ rawAccess

uint64_t SBufStats::rawAccess = 0

Definition at line 43 of file Stats.h.

Referenced by SBuf::c_str(), dump(), operator+=(), SBuf::rawContent(), and SBuf::rawSpace().

◆ setChar

uint64_t SBufStats::setChar = 0

Definition at line 38 of file Stats.h.

Referenced by SBuf::c_str(), dump(), operator+=(), and SBuf::setAt().

◆ toStream

uint64_t SBufStats::toStream = 0

Definition at line 37 of file Stats.h.

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

◆ trim

uint64_t SBufStats::trim = 0

Definition at line 46 of file Stats.h.

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


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors