Walkthrough - Basic Steps for Memory Profiling

Related Topics

Rational Purify helps you find memory usage and garbage-collection problems in your .NET managed code. Use Purify whenever you test to ensure that your code is as memory-efficient as it can be.

To profile and analyze memory usage for a program:

1.    Run your .NET managed program with Purify.

2.    Wait until your program has finished initializing, then take a snapshot.

3.    Execute code you suspect may be leaking, then take another snapshot.

4.    Compare the two snapshots to identify specific methods that may be causing memory problems.

5.    Examine suspect methods for unneeded objects, or objects containing references to unneeded objects that should be garbage-collected.

(C) Copyright IBM Corporation 1992, 2010.