cds  1.3.0
Public Member Functions
cds::memory::michael::procheap_atomic_stat Class Reference

processor heap statistics More...

#include <cds/memory/michael/procheap_stat.h>

Public Member Functions

void incAllocFromActive ()
 Increment event counter of allocation from active superblock.
 
void incAllocFromActive (size_t n)
 Increment event counter of allocation from active superblock by n.
 
void incAllocFromPartial ()
 Increment event counter of allocation from partial superblock.
 
void incAllocFromPartial (size_t n)
 Increment event counter of allocation from partial superblock by n.
 
void incAllocFromNew ()
 Increment event count of allocation from new superblock.
 
void incAllocFromNew (size_t n)
 Increment event count of allocation from new superblock by n.
 
void incFreeCount ()
 Increment event counter of free calling.
 
void incFreeCount (size_t n)
 Increment event counter of free calling by n.
 
void incBlockAllocated ()
 Increment counter of superblock allocated.
 
void incBlockAllocated (size_t n)
 Increment counter of superblock allocated by n.
 
void incBlockDeallocated ()
 Increment counter of superblock deallocated.
 
void incBlockDeallocated (size_t n)
 Increment counter of superblock deallocated by n.
 
void incDescAllocCount ()
 Increment counter of superblock descriptor allocated.
 
void incDescAllocCount (size_t n)
 Increment counter of superblock descriptor allocated by n.
 
void incDescFull ()
 Increment counter of full superblock descriptor.
 
void incDescFull (size_t n)
 Increment counter of full superblock descriptor by n.
 
void decDescFull ()
 Decrement counter of full superblock descriptor.
 
void decDescFull (size_t n)
 Decrement counter of full superblock descriptor by n.
 
void incAllocatedBytes (size_t nBytes)
 Add nBytes to allocated bytes counter.
 
void incDeallocatedBytes (size_t nBytes)
 Add nBytes to deallocated bytes counter.
 
void incActiveDescCASFailureCount (int nCount)
 Add nCount to CAS failure counter of updating active field of active descriptor for alloc_from_active internal Heap function.
 
void incActiveAnchorCASFailureCount (int nCount)
 Add nCount to CAS failure counter of updating anchor field of active descriptor for alloc_from_active internal Heap function.
 
void incPartialDescCASFailureCount (int nCount)
 Add nCount to CAS failure counter of updating active field of partial descriptor for alloc_from_partial internal Heap function.
 
void incPartialAnchorCASFailureCount (int nCount)
 Add nCount to CAS failure counter of updating anchor field of partial descriptor for alloc_from_partial internal Heap function.
 
size_t allocFromActive () const
 Read event counter of allocation from active superblock.
 
size_t allocFromPartial () const
 Read event counter of allocation from partial superblock.
 
size_t allocFromNew () const
 Read event count of allocation from new superblock.
 
size_t freeCount () const
 Read event counter of free calling.
 
size_t blockAllocated () const
 Read counter of superblock allocated.
 
size_t blockDeallocated () const
 Read counter of superblock deallocated.
 
size_t descAllocCount () const
 Read counter of superblock descriptor allocated.
 
size_t descFull () const
 Read counter of full superblock descriptor.
 
atomic64u_t allocatedBytes () const
 Get counter of allocated bytes.
 
atomic64u_t deallocatedBytes () const
 Get counter of deallocated bytes.
 
size_t activeDescCASFailureCount () const
 Get CAS failure counter of updating active field of active descriptor for alloc_from_active internal Heap function.
 
size_t activeAnchorCASFailureCount () const
 Get CAS failure counter of updating anchor field of active descriptor for alloc_from_active internal Heap function.
 
size_t partialDescCASFailureCount () const
 Get CAS failure counter of updating active field of partial descriptor for alloc_from_active internal Heap function.
 
size_t partialAnchorCASFailureCount () const
 Get CAS failure counter of updating anchor field of partial descriptor for alloc_from_active internal Heap function.
 

Detailed Description

processor heap statistics

This class is implementation of opt::procheap_stat option. The statistic counter implementation is based on atomic operations.

Template parameters:

Member Function Documentation

atomic64u_t cds::memory::michael::procheap_atomic_stat::allocatedBytes ( ) const
inline

Get counter of allocated bytes.

This counter only counts the bytes allocated by Heap, OS allocation (large blocks) is not counted.

To get count of bytes allocated but not yet deallocated you should call

atomic64u_t cds::memory::michael::procheap_atomic_stat::deallocatedBytes ( ) const
inline

Get counter of deallocated bytes.

This counter only counts the bytes allocated by Heap, OS allocation (large blocks) is not counted.unter of deallocated bytes

See allocatedBytes notes


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

cds 1.3.0 Developed by Maxim Khiszinsky aka khizmax 2007 - 2012
Autogenerated Sat Dec 29 2012 19:12:37 by Doxygen 1.8.3