#include <oscl_mem_audit.h>
Public Methods | |
| MM_Audit_Imp () | |
| ~MM_Audit_Imp () | |
| OSCL_IMPORT_REF void * | MM_allocate (const OsclMemStatsNode *statsNode, uint32 sizeIn, const char *pFileName, uint32 lineNumber, bool allocNodeTracking=false) |
| OSCL_IMPORT_REF bool | MM_deallocate (void *pMemBlockIn) |
| OSCL_IMPORT_REF MM_Stats_t * | MM_GetStats (const char *const tagIn) |
| OSCL_IMPORT_REF uint32 | MM_GetStatsInDepth (const char *tagIn, MM_Stats_CB *array_ptr, uint32 max_nodes) |
| OSCL_IMPORT_REF uint32 | MM_GetTreeNodes (const char *tagIn) |
| OSCL_IMPORT_REF bool | MM_AddTag (const char *tagIn) |
| OSCL_IMPORT_REF const OsclMemStatsNode * | MM_GetTagNode (const char *tagIn) |
| OSCL_IMPORT_REF const OsclMemStatsNode * | MM_GetExistingTag (const char *tagIn) |
| OSCL_IMPORT_REF const OsclMemStatsNode * | MM_GetRootNode () |
| OSCL_IMPORT_REF MM_AllocQueryInfo * | MM_CreateAllocNodeInfo (uint32 max_array_size) |
| OSCL_IMPORT_REF void | MM_ReleaseAllocNodeInfo (MM_AllocQueryInfo *info) |
| OSCL_IMPORT_REF uint32 | MM_GetAllocNodeInfo (MM_AllocQueryInfo *output_array, uint32 max_array_size, uint32 offset) |
| OSCL_IMPORT_REF 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) |
| OSCL_IMPORT_REF void | MM_SetMode (uint32 inMode) |
| OSCL_IMPORT_REF void | MM_SetPrefillPattern (uint8 pattern) |
| OSCL_IMPORT_REF void | MM_SetPostfillPattern (uint8 pattern) |
| OSCL_IMPORT_REF void | MM_SetTagLevel (uint32 level) |
| OSCL_IMPORT_REF bool | MM_SetFailurePoint (const char *tagIn, uint32 alloc_number) |
| OSCL_IMPORT_REF void | MM_UnsetFailurePoint (const char *tagIn) |
| MM_AllocNode * | addAllocNode (void *pMem, uint32 sizeIn, OsclMemStatsNode *pStatsNode, const char *pFileName, uint32 lineNumber) |
| OsclMemStatsNode * | removeAllocNode (void *pMemBlockIn, uint32 &size) |
| void | removeALLAllocNodes () |
| OsclMemStatsNode * | createStatsNode (const char *tagIn) |
| bool | updateStatsNode (OsclMemStatsNode *pCurrStatsNode, const MM_Stats_t &pDelta, bool bAdd) |
| bool | updateStatsNodeInFailure (const char *tagIn) |
| bool | updateStatsNodeInFailure (OsclMemStatsNode *pStatsNode) |
| bool | pruneSubtree (OsclMemStatsNode *pNode) |
| bool | pruneSubtree (const char *tagIn) |
| void | retrieveParentTag (char *tag) |
| int32 | retrieveParentTagLength (const char *tag, int32 bound) |
| void | makeValidTag (const char *tagIn, MMAuditCharAutoPtr &autoptr) |
| uint32 | getTagActualSize (const char *tagIn) |
| bool | isSetFailure (const char *tagIn) |
| bool | isSetFailure (OsclMemStatsNode *statsNode) |
| bool | validate_all_heap () |
Static Public Methods | |
| bool | validate (void *ptrIn) |
| OsclMemAudit * | getAuditRoot (void *ptrIn) |
| uint32 | getSize (void *ptrIn) |
|
|
Constructor, create the root node in statistics table |
|
|
A destructor, remove all the nodes in allocation andstatistics table |
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
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_
|
|
|
These APIs will allocate and release space for alloc node info, to be used with the MM_GetAllocNodeInfo API. |
|
|
|
|
|
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