12#define RESIPROCATE_SUBSYSTEM resip::Subsystem::STATS
38#ifdef RESIP_HEAP_COUNT
51 for (; i != iEnd; ++i)
56 WarningLog(<< i->first <<
" " << i->second.total <<
" > " << i->second.outstanding <<
", " <<
57 i->second.totalBytesOutstanding);
64HeapInstanceCounter::allocate(
size_t bytes,
67 void* addr = ::operator
new(bytes);
85HeapInstanceCounter::deallocate(
void* addr,
104 ::operator
delete(addr);
AllocationMap allocationMap
map< void *, unsigned long > AllocationSizeMap
map< Data, InstanceCounts > AllocationMap
#define WarningLog(args_)
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
@ Share
The Data instance will use the buffer in a read-only mode.
dcm! – add UnusedChecking(_enum) below;
std::mutex Mutex
A semaphore that can be locked by only one thread at a time.
std::unique_lock< Mutex > Lock
A convenience class to lock a Lockable (such as a Mutex) on object creation, and unlock on destructio...
size_t totalBytesOutstanding
AllocationSizeMap allocationSizes