Debugging Memory Problems with MemoryScape™ : Chapter 5 MemoryScape Scripting
MemoryScape Scripting
You can obtain information from MemoryScape by executing it in batch mode using the memscript command. Batch mode requires the use of command-line options, like so:
memscript command_line_options
display_specifiers Command-Line Option
The -display_specifiers command-line option controls how MemoryScape writes information to the log file.
-display_specifiers “list_item
Specifies one or more items that can be added or excluded from the log file. Separate items with a comma.
list_item values are described in the following table. The word no in front of item suppresses its display.
lItem
Controls display of ...
[no]show_allocator
The allocator for the address space
[no]show_backtrace
The backtrace for memory blocks
[no]show_backtrace_id
The backtrace ID for memory blocks
[no]show_block_address
The start and end addresses for a memory block
[no]show_flags
Memory block flags
[no]show_guard_id
The guard ID for memory blocks
[no]show_guard_settings
The guard settings for memory blocks
[no]show_image
The process/library associated with a backtrace frame
[no]show_owner
The owner of the allocation
[no]show_pc
The backtrace frame PC
[no]show_pid
The process PID
[no]show_red_zones_settings
The Red Zone entries for allocations and deallocations in the entire address space