Go to main content
Oracle® Developer Studio 12.6: Performance Analyzer Tutorials

Exit Print View

Updated: June 2017
 
 

Collecting Data From mttest for Hardware Counter Profiling Tutorial

The easiest way to collect the data is to run the following command in the mttest directory:

% make hwcperf

The hwcperf target of the Makefile launches a collect command and records an experiment.


Note -  This tutorial might take a longer time compiling and collecting data than the previous introductory tutorials.

The experiment is named test.1.er by default and contains clock-profiling data and hardware counter profiling data for the default counters for your system. In this chapter's example, the counters are: inst (instructions), cycles (cycles), and dcm (data-cache-misses). If Performance Analyzer does not define a default set of hardware counters for your system, the collect command fails. In that case, edit the HWC_OPT definition in your Makefile to specify counters that are supported in your system.


Tip  -  You can use the command collect -h to determine which counters your system does support. For information about the hardware counters, see Hardware Counter Lists in Oracle Developer Studio 12.6: Performance Analyzer.