memsrc

Abstract

Displays a list of allocation sources for the specified memory category. Each source is identified by a procedure call stack presented in top-down order. Memory allocations performed by user-defined processes are evident when a process model name appears as a procedure in a stack list.

Syntax

memsrc <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 allocated by the KP op_prg_mem_alloc() is bundled in the “prg_mem blocks” category.

Example

ODB> memsrc "simulation time cell"

Stack 1 of 3 - Total object count (2), call count (1), assoc call count (0)
-----------------------------------------------
	main (argc, argv, envp)
	sim_init (argc, argv, envp)
	sim_ev_init (net_name, argc, argv, envp)
	sim_ev_tree_init ()

Stack 2 of 3 - Total object count (1), call count (0), assoc call count (0)
-----------------------------------------------
	main (argc, argv, envp)
	sim_init (argc, argv, envp)
	sim_init_post_load ()
	sim_obj_igen_post_init (gptr)
	sim_obj_igen_schedule (gptr)
	sim_ev_schedule (modptr, pdptr, handler, code, type, exec_proc, state_ptr, ..)
sim_ev_insert (ev_ptr, start_cell_ptr)

...

See “Using Memory Source Tracing” on page 57 for a way of getting more detailed information about memory allocations.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com