Debugging Memory Problems with MemoryScape : Chapter 1 Locating Memory Problems : Batch Scripting and Using the CLI : Using the -dheap Command
Using the -dheap Command
 
* 
You must be using MemoryScape with TotalView to have access to the CLI.
The dheap command tracks memory problems from within the CLI. The dheap command supports the same functionality as that within the GUI, with some additional options. Here are actions common to both interfaces:
*To see the status of MemoryScape, use the dheap command with no arguments.
*To display information about the heap, use dheap -info. You can show information for the entire heap or limit what TotalView displays to just a part of it.
*To enable and disable MemoryScape, use dheap -enable and dheap -disable.
*To start and stop error notification, use dheap -notify and dheap -nonotify.
*To filter the information displayed, use dheap -filter.
*To check for leaks, use dheap -leaks.
*To paint memory with a bit pattern, use dheap -paint.
*To hoard memory, use dheap -hoard.
*To export view information, use dheap -export.
*To detect bounds and use-after-free errors, use dheap -red_zones.
*To compare memory states, either against a baseline or against a saved state or between two saved states, use dheap -compare.
 
* 
Some dheap options are not available in the GUI.