Use this screen to explore how your program is using memory. Selecting an option tells MemoryScape which category of memory it should display. Many developers begin with this report as its graphical representation simplifies exploring how a program uses memory. Later, developers move to other reports as they try to refine what they are seeing.
After you select a block, MemoryScape fills in information in the bottom part of the window. In addition, you can click the Backtrace/Source tab to see the place in your program that allocated the block.
When you select a block in the chart or select information in the tabbed areas, MemoryScape highlights related information. For example, when you click on a block, MemoryScape highlights all blocks having the same backtrace.
Move your cursor over the graphic to obtain help
After selecting Detect Leaks, MemoryScape analyzes memory and your program. This analysis consists of looking for memory blocks that your program’s variables do not reference. It it finds unreferenced blocks, it displays them in red.
After selecting Enable Filtering, MemoryScape applies your filter against the heap. It displays all filtered blocks in gray. In other words, in contrast to other reports where filtered blocks are not included, this report just changes the way it displays them. It displays them in this way so that memory isn’t displayed with holes in it.
The graphical display area is the heart of this report. Each block within the graph indicates one memory allocation. These allocations are displayed in color. (The key to the way they are colored is contained within the left bottom
Overall Totals area.) When you place your cursor over a block, it displays a pop-up window containing information about it. This is the same information that appears in the center bottom
Selected Block area. In addition, the bottom right area contains information about related blocks when you click on the block in the center area.
Overall Totals: Contains summary information about the way your program is using heap memory as well as a key to the graph’s color coding. As this area is quite small, you cannot see all the information contained here until you resize the area. The fields in this area are
Category,
Bytes, and
Count.
Selected Block: Displays a variety of information about the selected block. The contents of this area depend upon the memory debugging options you have selected.
Related Blocks: Contains information about related blocks.
Related blocks are blocks that have the same backtrace ID. As this area is quite small, you cannot see all the information contained here until you resize the area. The fields in this area are
Category,
Bytes, and
Count.
Backtrace area: Contains the backtrace associated with the block that you select in the central graph. A backtrace is the call stack that existed when your program allocated the memory block. The source area shows the line in your program associated with the selected function.
Source 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.
Copyright © 2012, Rogue Wave Software, Inc. All Rights Reserved.
TotalView® Version 8.10