Analyzing Memory Usage of C/C++/Fortran Applications

See Also 

The Memory Usage profiling tool runs by default for C, C++, and Fortran projects, and shows how your application's memory heap changes over its runtime. You can use it to identify memory leaks, which are points in your program where memory that is no longer needed fails to be released. Memory leaks can lead to increased memory consumption in your program.

Note: The profiling tools are supported only on platforms shown in Overview of C and C++ Profiling.

To view more detailed information about memory usage:

If you see a message that detailed information is not available in the current profile configuration:

  1. Right-click the project and select Properties.
  2. Click the Profile node in the Project Properties dialog.
  3. In the Profile Configuration list, select the C/C++ DTrace Standard configuration if you are running on Oracle Solaris, or C/C++ Oracle Solaris Studio Standard if you are running on Linux with the Oracle Solaris Studio tool collection.
    Tip: If you do not see these configurations, your operating system and tool collection do not support the advanced profiling features.
  4. Click OK.
  5. Run the project and you should be able to click the Memory Leaks button and see detailed information.

To disable Memory Usage profiling in the Run Monitor:

To disable all Run Monitor profiling tools:

See also
  Managing C/C++/Fortran Profile Configurations
Profiling C/C++/Fortran Projects
Run Monitor Window for C/C++/Fortran Projects
C/C++/Fortran Project Properties Dialog Box: Profile

Legal Notices