memsnk
Abstract
Displays a list of deallocation sinks for the specified memory category. Each sink is identified by a procedure call stack presented in top-down order. Memory deallocations performed by user-defined processes are evident when a process model name appears as a procedure in a stack list.
Syntax
memsnk <mem_category>
| Argument | Type | Description |
|---|---|---|
<mem_category> |
string | name of memory category The list of all available memory categories can be displayed by issuing the ODB command “memstats all”. If a memory category name consists of several words separated by spaces, it must be surrounded with double-quote characters. |
Details
This command is only functional if the mem_track simulation preference is set to TRUE, indicating that memory tracking data should be maintained. A memory category is a class of memory managed by the Simulation Kernel’s allocator. Memory categories include static model objects allocated during the loading phase of the simulation, dynamic entities (such as packets) that are allocated and deallocated throughout the simulation, and low-level static or dynamic data structures used by the Simulation Kernel. User-defined memory deallocated by the KP op_prg_mem_free() is bundled in the “prg_mem blocks” category.
Example
