Reference Guide New Features Installation, Transformations, Release Notes

Displaying Memory Statistics    

The Tools > Memory Usage Window tells you how your program is using memory and where this memory is being used. The best way to use this window is to compare memory use over time so that you can tell if your program is leaking memory. If a program is leaking memory, you'll see that the amount of memory being used steadily increases over time. The following figure shows the By Process Pane of the Memory Usage window.

Tools > Memory Usage Window

When you see this information within TotalView, the maximum value of an item is displayed in red and the minimum value is displayed in blue. This information specifies the amount of memory used by the executable's text and data segments, and the TotalView process IDs.
 

You can change the sort order by clicking on a column's header or by using the controls at the bottom of the window.

Notice that if you add the memory values of all columns but the last, the sum doesn't equal this last column's value. This is because most operating systems divide segments into pages, and information in a segment doesn't cross page boundaries.
 

CLI Equivalent: dmstat

Here's the definition for most of these columns:

Text

The amount of memory needed to store your program's machine code instructions.

Data

The amount of memory required to store initialized data.

Heap

The amount of memory currently being used for data created at run-time.

Stack

The amount of memory used by the currently executing routine and all the routines that have invoked it.

StackVm

The logical size of the stack is the difference between the current value of the stack pointer and address from which the stack originally grew. This value can differ from the size of the virtual memory mapping in which the stack resides.

This value is that size difference.

VmSize

The sum of the sizes of the mappings in the process's address space.

Note:   The online Help has more information.

Using the P/T Set controls at the top of the window is discussed in Using the P/T Set Browser.

The By Library Pane (shown in the following figure) shows which library files are contained within your executable.

Tools > Memory Usage Window: By Library Pane

Clicking on any of the columns tells TotalView to sort the values in that column. You can change the order form ascending to descending (or descending to ascending) by clicking a second time on the column heading. If you're so inclined, there are commands for sorting these columns in the menubar.

 
 
 
Select a section: 
 
documentation@etnus.com
Copyright © 2003, Etnus, Inc. All rights reserved.
Version 6.2