memory.hooks module

Provides memory hooking functionality.

class memory.hooks.HookType

Bases: Boost.Python.enum

POST = _memory.HookType.POST
PRE = _memory.HookType.PRE
names = {'PRE': _memory.HookType.PRE, 'POST': _memory.HookType.POST}
values = {0: _memory.HookType.PRE, 1: _memory.HookType.POST}
class memory.hooks.PostHook(function)[source]

Bases: memory.hooks._Hook

Decorator class used to create post hooks that auto unload.

hook_type = _memory.HookType.POST
class memory.hooks.PreHook(function)[source]

Bases: memory.hooks._Hook

Decorator class used to create pre hooks that auto unload.

hook_type = _memory.HookType.PRE