Debugging Memory Problems with MemoryScape : Heap Status Backtrace Report
Heap Status Backtrace Report
Use this report to organize heap information by backtraces (call stacks) associated with a function when your program created the memory block.
For more information, see “Task 8: Obtaining Detailed Heap Information.”
Click on an area in the graphic to obtain help.
Process Selection
Contains a list of processes and files added to this memory debugging session.
Execution controls
These controls let you refresh or create () this report, run (), or halt () your program.
Data Source
Click on a radio button to tell MemoryScape what kind of information it should report. Your choices are Allocations, Deallocations, and the Hoard. You can only select one data source. If you need to repeatedly refer from one to another, you may want to use the Save View command (it’s on the left side of the screen) to write an HTML version of the report to disk.
Options
After selecting Enable Filtering, MemoryScape applies your filter against the heap and removes any blocks that match the filter from the display.
Backtrace area
Groups all of your programs leak by the backtrace ID created by MemoryScape when it allocated the block. A backtrace is the call stack that existed when your program allocated the memory block.
Source file area
Names the source file in which the selected item resides. This may not apply to all selections.
Source code area
Shows the line in your program associated with the information shown in the backtrace area. When you click on a function in the backtrace area, the information in this area changes.
Debug in TotalView
Tells MemoryScape to open the currently selected process in TotalView. The TotalView process window will display the current state of that process. You must have a TotalView license available to debug in TotalView.
Be aware that opening the TotalView process window from within MemoryScape does not initialize TotalView in the same way as starting TotalView directly. The definitions in your .tvdrc file and your saved breakpoints are not loaded. However, you can load a breakpoint file using the Action Point menu item in the process window. If you need the definitions in your .tvdrc file, start TotalView first and open MemoryScape from within TotalView.
Red Zones
Tells MemoryScape to set the Red Zones option on or off for the selected processes.