Profiling C and C++ Projects

See Also 

You can examine the behavior of your running C/C++ project with several profiling tools in the IDE. The profiling tools run automatically by default whenever you run your C or C++ project on a Solaris 10 or OpenSolaris operating system.

The profiling information is collected using either DTrace or Sun Studio tools, and the underlying operating system. You can change the profiler configuration in the Project Properties dialog's Profile category.

If you are running the project on a Solaris system (either on a local Solaris system, or on a remote Solaris development host), you can click a button in the indicator graphs to get more detailed information. A new tab is displayed in the IDE to show details about what the data being displayed in the relevant indicator.

If you are running the project on a Linux system as a local host or remote development host, you can get the detailed information only if you have installed Sun Studio tools on the Linux system. You must select a C/C++ Sun Studio profile configuration in your project properties.

If you are running the project on a Windows or Mac OS X system, you cannot get the detailed information because Sun Studio tools are not available for these platforms, and DTrace is fully supported only on Solaris platforms.

You can disable the Profile tools in the project's properties so that the profiling does not automatically occur when you run the project, as described below. You can also disable profiling for all projects, or disable any particular tool by Managing Profile Configurations.

To disable profiling tools on a particular project:

  1. Right-click the project node in the Project window.
  2. Select the Profile category in the Project Properties dialog box.
  3. Deselect the option Show profiling indicators during run.
  4. Click OK.
See also
  Overview of C and C++ Profiling
Managing Profile Configurations
Configuring Build Tools
C/C++ Project Properties Dialog Box: Profile

Legal Notices