To collect performance data using the Debugger:
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.
Choose Debug Performance
Toolkit
Enable Collector.
The Collector dialog box opens.
Clock-based Profiling. For timing information, collect clock-based profiling data. Clock-based profiling is enabled by default. You can choose the profiling interval from the combo box:
See Choosing a Value For the Profiling Interval for more information on the profiling interval. See Clock Data for more information on this data type.
Synchronization Wait Tracing. For information on synchronization in multithreaded programs, collect synchronization wait tracing data. The Calibrate item in the Minimum Delay combo box screens out calls to synchronization functions that have very small delays. The All item sets the minimum delay to zero. The Custom option allows you to choose your own value, in microseconds.
See Synchronization Wait Tracing Data for more information on this data type.
Hardware Counter Overflow Profiling. For information on processor events, collect hardware-counter overflow profiling data. See Hardware Counter Data for more information. If this section is dimmed, your computer does not support hardware-counter overflow profiling.
If hardware-counter profiling is supported, click Available Counters to get a list of all the available counters on your computer, the register number(s) on which they can be used, their default overflow values, attributes (if any), and the type of units to be counted. The format of the list is described in Hardware Counter Lists.
To select a counter to use, click the Add Counters combo box. The HWC Configuration dialog box appears. Select a counter from the Counter Name combo box. The list contains all of the names of the counters available to use for profiling.
The values corresponding to the Normal, High, Low, and Custom items in the Overflow Value combo box depend on the specific counter. These default overflow values are listed with the counter name in the hardware counter list. If you want to use a different value, you must use the Custom option.
The default value for HWC Dataspace is Off. The value can be set to On only for memory-related counters. Setting the value to On causes the collect command to backtrack in an attempt to find the instruction that triggered the overflow, and to find the virtual and physical addresses of the memory reference. Backtracking will only work with counters of type load, store, or load-store, as displayed in the counter list. The dataspace information gathered is displayed in the DataLayout and the DataObject tabs in the main Analyzer window. To find out the list of memory-related hardware counters, click Available Counters on the Data to Collect tab.
The HWC register combo box lists the hardware register numbers allowed to be used for the counter. If the register is left at the default value of None, collect will attempt to place the counter into the first available register and as a result, may be unable to place subsequent counters due to register conflicts.
The default value for Counter Attribute is None. Attributes options can be associated with hardware counters only if they are available on the processor. The combo box lists all the available attributes for the counter. The value for the attribute can be entered in the field next to the combo box. The value can be in either decimal or hexadecimal format. To add the attribute, click Add Attribute.
Click Update List to add the counter information to the Selected Counter list. The number of counter definitions that can be used to record date in an experiment is processor dependent.
Periodic Samples. If you want sample points (global data) to be recorded at regular time intervals, select the Periodic Sampling check box. You can choose the sampling interval from the combo box:
If you make a mistake in the Collector configuration and want to correct
it., you must disable the Collector first, by choosing Debug Performance
Toolkit
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.
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 |