|
cds
1.3.0
|
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. | |
processor heap statistics
This class is implementation of opt::procheap_stat option. The statistic counter implementation is based on atomic operations.
Template parameters:
INC_FENCE - memory fence for increment operation (default is release semantics)READ_FENCE - memory fence for reading of statistic values (default is acquire semantics)
|
inline |
|
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