Collecting Performance Data Using the Debugger

See Also

To collect performance data using the Debugger:

  1. Load your program into the Debugger (see "Loading a Program Into the Debugger" in the dbx Debugging helpset).
  2. Ensure that memory access checking and memory usage checking are disabled by checking that the Memory Usage tab and Access Errors tab of the Output window both say OFF.

    Memory access checking and memory usage checking are disabled by default.

  3. Choose Debug and choose Performance Toolkit and choose Enable Collector.

    The Collector dialog box opens.

  4. In the Collect Experiment tab, enter information about the experiment you want to collect:
  5. In the Data to Collect tab, choose the types of data you want to collect.
  6. Heap Tracing. For information on memory allocations and leaks, collect heap tracing data. See Heap Tracing (Memory Allocation) Data for more information on this data type.
  7. MPI Tracing. For information on calls in a program that uses MPI (message passing interface), collect MPI tracing data. See MPI Tracing Data for more information on this data type.
  8. Record Sample When dbx Stops Process. By default, a sample is collected each time dbx stops the target process. If you do not want such samples collected, deselect the Record Sample When dbx Stops Process checkbox.
  9. Click OK to send the Collector configuration to dbx and close the Collector dialog box.
  10. Choose Debug and choose Continue to run your program.
  11. If you make a mistake in the Collector configuration and want to correct it., you must disable the Collector first, by choosing Debug and choose Performance Toolkit and choose Disable Collector. Then enable the collector and change the configuration. If you do not disable the Collector after making a mistake, the last valid configuration is used when you run your program.

    When the program finishes, performance data collection remains enabled. If you run the program again or run another program, another experiment is recorded. If you do not want to record another experiment, you must disable the Collector.

    If you have trouble configuring the data collection, see Performance Data Collection Problems.
    See also
    Performance Data Storage
    Collecting Performance Data Using the Performance Tools Collect Window
    Collecting Performance Data on a Running Process


    Can't find what you are looking for? Submit your comments at http://www.sun.com/hwdocs/feedback.
    Legal Notices