Analyzing I/O Usage of C/C++/Fortran Applications

See Also 

The IDE provides the I/O Usage tool for observing the input/output behavior of C/C++/Fortran projects. The tool shows an overall graphical view of the reads and writes of your project, and a more detailed view of individual files that are read from and written to.

The input/output data is collected with DTrace, a tool for tracing the activities of running programs in the Oracle Solaris 10 and OpenSolaris operating systems. For this reason, it can only run on these platforms.

Tip: If you have access to a remote system running Oracle Solaris 10 or OpenSolaris, you can configure it as a remote development host in the IDE and then use that system to build and run your project.

In order to use the I/O Usage tool, the Solaris user account that you use when you run the IDE must have sufficient DTrace privileges to observe system behavior. See Enabling DTrace For Profiling C/C++/Fortran Applications.

To profile your application's I/O activity:

  1. Right click the project name and select Properties to open the Project Properties dialog box.
  2. Click the Build node.
  3. Optionally, in the Development Host list, select a remote host running Oracle Solaris or OpenSolaris.
  4. Click the Profile node.
  5. Select the checkbox for Show profiling indicators during run.
  6. In the Profile Configuration list, select C/C++ DTrace Extended.
  7. Click OK.
  8. Run the project by right-clicking the project node and selecting Run.
    The Run Monitor window opens, showing all the profiling tools.
  9. In the Run Monitor window, find the I/O Usage tool and click the I/O Details button.
    The I/O Usage details tab opens, displaying standard input, standard output, and temporary files that the program reads from and writes to.
  10. Click filenames in the I/O Details tab to see the functions that have opened and closed the file. The function names are displayed in the panel to the right of the file table.
  11. Double-click a function in the right panel to open the source file where the function is called.
See also
  Managing C/C++/Fortran Profile Configurations
Profiling C/C++/Fortran Projects
C/C++/Fortran Project Properties Dialog Box: Profile

Legal Notices