#include <oscl_mem_audit.h>
Public Methods | |
| OsclMemAudit () | |
| ~OsclMemAudit () | |
| void * | MM_allocate (const OsclMemStatsNode *statsNode, uint32 sizeIn, const char *pFileName, uint32 lineNumber, bool allocNodeTracking=false) |
| bool | MM_deallocate (void *pMemBlockIn) |
| MM_Stats_t * | MM_GetStats (const char *const tagIn) |
| uint32 | MM_GetStatsInDepth (const char *tagIn, MM_Stats_CB *array_ptr, uint32 max_nodes) |
| uint32 | MM_GetTreeNodes (const char *tagIn) |
| bool | MM_AddTag (const char *tagIn) |
| const OsclMemStatsNode * | MM_GetTagNode (const char *tagIn) |
| const OsclMemStatsNode * | MM_GetExistingTag (const char *tagIn) |
| const OsclMemStatsNode * | MM_GetRootNode () |
| uint32 | MM_GetAllocNodeInfo (MM_AllocQueryInfo *output_array, uint32 max_array_size, uint32 offset) |
| MM_AllocQueryInfo * | MM_CreateAllocNodeInfo (uint32 max_array_size) |
| void | MM_ReleaseAllocNodeInfo (MM_AllocQueryInfo *info) |
| bool | MM_Validate (const void *ptrIn) |
| uint32 | MM_GetAllocNo (void) |
| void | MM_GetOverheadStats (MM_AuditOverheadStats &stats) |
| uint32 | MM_GetNumAllocNodes () |
| uint32 | MM_GetMode (void) |
| uint8 | MM_GetPrefillPattern (void) |
| uint32 | MM_GetPostfillPattern (void) |
| void | MM_SetMode (uint32 inMode) |
| void | MM_SetPrefillPattern (uint8 pattern) |
| void | MM_SetPostfillPattern (uint8 pattern) |
| void | MM_SetTagLevel (uint32 level) |
| bool | MM_SetFailurePoint (const char *tagIn, uint32 alloc_number) |
| void | MM_UnsetFailurePoint (const char *tagIn) |
| int32 | MM_GetRefCount () |
| OsclLockBase * | GetLock () |
Friends | |
| class | OsclMemGlobalAuditObject |
|
|
Constructor, create the root node in statistics table |
|
|
A destructor, remove all the nodes in allocation andstatistics table |
|
|
API to obtain mem lock ptr |
|
|
API to add a node and zero out its counters; Note that this tag should be re-used
|
|
||||||||||||||||||||||||
|
The following are APIs t __nothrow_/ const __nothrow_
|
|
|
|
|
|
|
|
|
API to get the current allocation number
|
|
||||||||||||||||
|
API to query the list of alloc nodes. It copies the information into the provided output array.
|
|
|
API to add a node and zero out its counters; Note that this tag should be re-used
|
|
|
API to get the operating mode of the mm_audit class. |
|
|
API to get the number of allocation nodes (records) for allocations that are being tracked individually. |
|
|
API to get the overhead statistics for the memory used by the mm_audit class. |
|
|
API to get the postfill pattern. The pattern is used to fill the memory before freeing it. |
|
|
API to get the prefill pattern. The pattern is used to fill the memory before returning it to the caller. |
|
|
|
|
|
|
|
|
API to get memory statistics through context string(tag)
|
|
||||||||||||||||
|
API to get memory statistics in detail through context string(tag) including its subtree
|
|
|
API to add a node and zero out its counters; Note that this tag should be re-used
|
|
|
API to get the number of tree nodes including the tag node and its subtree
|
|
|
|
|
||||||||||||
|
API to insert allocation failure deterministically according to allocation number associated with tag
|
|
|
API to set the operating mode of the mm_audit class. |
|
|
API to set the postfill pattern. |
|
|
API to set the prefill pattern. |
|
|
API to set the maximum tag level,i.e. tag level for a.b.c.d = 4
|
|
|
API to cancel the allocation failure point associated with tag
|
|
|
API to check the input pointer is a valid pointer to a chunk of memory
|
|
|
|
OSCL API
Posting Version: CORE_8.508.1.1