![]() |
ATLAS Offline Software
|
Access to some useful malloc statistics. More...
#include <MallocStats.h>
Public Types | |
typedef int | return_type |
Public Member Functions | |
MallocStats () | |
c-tor More... | |
void | refresh () |
update cached informations about ,alloc statistics More... | |
return_type | from_system_nmmap () |
Returns number of bytes allocated from system not including mmapped regions. More... | |
return_type | free_chunks () |
Returns number of free chunks. More... | |
return_type | used () |
Number of bytes allocated and in use. More... | |
return_type | not_used () |
Number of bytes allocated but not in use. More... | |
return_type | releasable () |
Top-most, releasable (via malloc_trim) space (bytes) More... | |
return_type | max_allocated () |
Maximum total allocated space (bytes) (always 0 ?) More... | |
return_type | fastbin_blocks () |
Number of fastbin blocks. More... | |
return_type | fastbin_free () |
Space available in freed fastbin blocks (bytes) More... | |
return_type | from_system_mmap () |
Returns number of bytes allocated from system using mmap. More... | |
return_type | mmap_chunks () |
Number of chunks allocated via mmap() More... | |
return_type | from_system_total () |
Returns total number of bytes allocated from system including mmapped regions. More... | |
std::string | repr () |
display malloc stats More... | |
void | dump (std::ostream &out=std::cout) |
display malloc stats on std::cout More... | |
Private Attributes | |
PerfMon::mallinfo_t | m_infos |
Access to some useful malloc statistics.
malloc is default C++ allocator
Definition at line 26 of file MallocStats.h.
typedef int PerfMon::MallocStats::return_type |
Definition at line 36 of file MallocStats.h.
PerfMon::MallocStats::MallocStats | ( | ) |
void PerfMon::MallocStats::dump | ( | std::ostream & | out = std::cout | ) |
display malloc stats on std::cout
Definition at line 70 of file MallocStats.cxx.
|
inline |
Number of fastbin blocks.
Definition at line 86 of file MallocStats.h.
|
inline |
Space available in freed fastbin blocks (bytes)
Definition at line 93 of file MallocStats.h.
|
inline |
Returns number of free chunks.
Definition at line 51 of file MallocStats.h.
|
inline |
Returns number of bytes allocated from system using mmap.
Definition at line 100 of file MallocStats.h.
|
inline |
Returns number of bytes allocated from system not including mmapped regions.
Definition at line 44 of file MallocStats.h.
|
inline |
Returns total number of bytes allocated from system including mmapped regions.
Definition at line 116 of file MallocStats.h.
|
inline |
Maximum total allocated space (bytes) (always 0 ?)
Definition at line 79 of file MallocStats.h.
|
inline |
Number of chunks allocated via mmap()
Definition at line 107 of file MallocStats.h.
|
inline |
Number of bytes allocated but not in use.
Definition at line 65 of file MallocStats.h.
|
inline |
|
inline |
Top-most, releasable (via malloc_trim) space (bytes)
Definition at line 72 of file MallocStats.h.
std::string PerfMon::MallocStats::repr | ( | ) |
|
inline |
Number of bytes allocated and in use.
Definition at line 58 of file MallocStats.h.
|
private |
Definition at line 28 of file MallocStats.h.