SegmentStats Class Reference

#include <MemoryStats.hpp>

Public Member Functions

 SegmentStats (const char *id)
 
void clear ()
 
void recordObject (MemoryStats *memStats, char *obj)
 
void printStats ()
 

Protected Attributes

size_t count
 
size_t largestSegment
 
size_t smallestSegment
 
size_t totalBytes
 
size_t liveBytes
 
size_t deadBytes
 
size_t liveObjects
 
size_t deadObjects
 
const char * name
 

Friends

class MemoryStats
 
class MemorySegmentSet
 

Detailed Description

Definition at line 68 of file MemoryStats.hpp.

Constructor & Destructor Documentation

◆ SegmentStats()

SegmentStats::SegmentStats ( const char *  id)
inline

Definition at line 73 of file MemoryStats.hpp.

Member Function Documentation

◆ clear()

void SegmentStats::clear ( )

◆ printStats()

void SegmentStats::printStats ( )

◆ recordObject()

void SegmentStats::recordObject ( MemoryStats memStats,
char *  obj 
)

Friends And Related Function Documentation

◆ MemorySegmentSet

friend class MemorySegmentSet
friend

Definition at line 70 of file MemoryStats.hpp.

◆ MemoryStats

friend class MemoryStats
friend

Definition at line 69 of file MemoryStats.hpp.

Member Data Documentation

◆ count

size_t SegmentStats::count
protected

Definition at line 85 of file MemoryStats.hpp.

Referenced by clear(), MemorySegmentSet::gatherStats(), and printStats().

◆ deadBytes

size_t SegmentStats::deadBytes
protected

Definition at line 91 of file MemoryStats.hpp.

Referenced by clear(), printStats(), and recordObject().

◆ deadObjects

size_t SegmentStats::deadObjects
protected

Definition at line 93 of file MemoryStats.hpp.

Referenced by clear(), printStats(), and recordObject().

◆ largestSegment

size_t SegmentStats::largestSegment
protected

Definition at line 86 of file MemoryStats.hpp.

Referenced by clear(), MemorySegmentSet::gatherStats(), and printStats().

◆ liveBytes

size_t SegmentStats::liveBytes
protected

Definition at line 90 of file MemoryStats.hpp.

Referenced by clear(), printStats(), and recordObject().

◆ liveObjects

size_t SegmentStats::liveObjects
protected

Definition at line 92 of file MemoryStats.hpp.

Referenced by clear(), printStats(), and recordObject().

◆ name

const char* SegmentStats::name
protected

Definition at line 94 of file MemoryStats.hpp.

Referenced by printStats().

◆ smallestSegment

size_t SegmentStats::smallestSegment
protected

Definition at line 87 of file MemoryStats.hpp.

Referenced by clear(), MemorySegmentSet::gatherStats(), and printStats().

◆ totalBytes

size_t SegmentStats::totalBytes
protected

Definition at line 89 of file MemoryStats.hpp.

Referenced by clear(), printStats(), and recordObject().


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