In this example you generate two experiments: one that is run with four CPUs and one that is run with one CPU. In addition to timing data, synchronization wait tracing data is collected.
To collect data for mttest, type the following commands in a terminal window.
% cd /work-directory/mttest % collect -s on -o mttest.1.er mttest % collect -s on -o mttest.2.er mttest -u
Here, work-directory is the full path to the directory that you created for the examples. The collect commands create two experiments in the mttest subdirectory, named mttest.1.er and mttest.2.er. If you make a mistake in recording the experiments and already have experiments with these names, you can remove them using the er_rm command.
When you have finished collecting data, open the first experiment, mttest.1.er, in the Performance Analyzer. Then open the second experiment in a second Performance Analyzer by typing the following command in a terminal window:
% analyzer mttest.2.er &
When you have done this, position the Analyzer windows so that you can see them both.
For information on the collect command, see the collect(1) man page. If you are already familiar with the collect command, you can type make collect instead of the commands given above.