Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

LMallocUsage Struct Reference

#include <salloc.h>

Collaboration diagram for LMallocUsage:

Collaboration graph
[legend]
List of all members.

Public Attributes

size_t alloc_limit
 current limit; 0 for unlimited

size_t curr_used
 amount of currently used memory

size_t max_used
 max amount of mem used

size_t malloc_calls
 number of calls to LMalloc()...

size_t realloc_calls
 ...LRealloc(),...

size_t free_calls
 ...and LFree().

int used_chunks
 incremented for alloc and decremented for free

int max_used_chunks
 max number of used chunks at a time

int real_failures
 how often allocation failed due to real failures

int limit_failures
 how often allocation failed due to alloc limit


Detailed Description

Describes allocation state and limits.

Definition at line 33 of file salloc.h.


Member Data Documentation

size_t LMallocUsage::alloc_limit
 

current limit; 0 for unlimited

Definition at line 35 of file salloc.h.

Referenced by _LMalloc(), _LMallocPrintStats(), _LRealloc(), and LMallocSetLimit().

size_t LMallocUsage::curr_used
 

amount of currently used memory

Definition at line 36 of file salloc.h.

Referenced by _LFree(), _LMalloc(), _LMallocPrintStats(), _LRealloc(), and main().

size_t LMallocUsage::free_calls
 

...and LFree().

Definition at line 40 of file salloc.h.

Referenced by _LFree(), _LMallocPrintStats(), and main().

int LMallocUsage::limit_failures
 

how often allocation failed due to alloc limit

Definition at line 44 of file salloc.h.

Referenced by _LMalloc(), and _LRealloc().

size_t LMallocUsage::malloc_calls
 

number of calls to LMalloc()...

Definition at line 38 of file salloc.h.

Referenced by _LMalloc(), _LMallocPrintStats(), and main().

size_t LMallocUsage::max_used
 

max amount of mem used

Definition at line 37 of file salloc.h.

Referenced by _LMalloc(), _LMallocPrintStats(), _LRealloc(), and main().

int LMallocUsage::max_used_chunks
 

max number of used chunks at a time

Definition at line 42 of file salloc.h.

Referenced by _LMalloc(), _LMallocPrintStats(), and main().

int LMallocUsage::real_failures
 

how often allocation failed due to real failures

Definition at line 43 of file salloc.h.

Referenced by _LMalloc(), and _LRealloc().

size_t LMallocUsage::realloc_calls
 

...LRealloc(),...

Definition at line 39 of file salloc.h.

Referenced by _LMallocPrintStats(), _LRealloc(), and main().

int LMallocUsage::used_chunks
 

incremented for alloc and decremented for free

Definition at line 41 of file salloc.h.

Referenced by _LFree(), _LMalloc(), _LMallocPrintStats(), and main().


The documentation for this struct was generated from the following file:
Generated on Sat Feb 19 22:35:28 2005 for Ray by doxygen 1.3.5