Commit Graph

1 Commits (c43319dc13b5fb65b6ff83de2a8fcd11a2216e63)

Author SHA1 Message Date
Mika Leppänen 5c24b26940 Added nanostack dynamic memory tracker and hooks to dynmem library
Nanostack dynamic memory tracker tracks memory allocations. It has following
interface:

ns_dyn_mem_tracker_lib_alloc: is called on alloc

ns_dyn_mem_tracker_lib_free: is called on free

ns_dyn_mem_tracker_lib_step: updates the lifetime of individual memory
blocks (is used to detected which blocks are permanent and which
have been allocated lately)

ns_dyn_mem_tracker_lib_allocator_lists_update: updates allocator lists,
there are lists for top allocators, permanent allocators and allocators
going to permanent allocators list

ns_dyn_mem_tracker_lib_max_snap_shot_update: can be used to update memory
maximum usage snap shot, this can be called on alloc if snap shot is
needed
2020-11-16 10:20:36 +02:00