OMMemoryManagerSwitchHelper class

OMMemoryManagerSwitchHelper is a singleton of the OMMemoryManagerSwitchHelper class. It is responsible for logging memory allocations, and enables client objects to check whether a specific memory allocation is registered.

By default, the switch helper logic is disabled. To enable it, compile the framework using the OM_ENABLE_MEMORY_MANAGER_SWITCH compiler switch.

Construction summary
OMMemoryManagerSwitchHelper
Creates an OMMemoryManagerSwitchHelper object
~OMMemoryManagerSwitchHelper
Destroys an OMMemoryManagerSwitchHelper object
Method summary
cleanup
Cleans up the allocated memory list
findMemory
Searches for a recorded memory allocation
instance
Returns the singleton instance of the OMMemoryManagerSwitchHelper
isLogEmpty
Determines whether the memory log is empty
recordMemoryAllocation
Records a single memory allocation
recordMemoryDeallocation
Records a single memory deallocation
setUpdateState
Specifies whether the singleton is updated
shouldUpdate
Determines whether the singleton is updated (and have new memory allocations recorded)

Feedback