Use the TIME-WINDOWS option to set up time frames within which Intel® Trace Collector will save the events into the trace file.
You can have several time frames at the same run.
To set time windows for Intel Trace Collector to collect trace data for the poisson application from 0 to 28 milliseconds only, do the following:
- Create a new configuration file.
- To get the correct order of messages in the output trace file, include the first communication into the first time window.
For the poisson application, set up the time frame from 0 to 28 milliseconds using the following syntax (the lower-case "L" character stands for milliseconds):
For more information about the syntax of parameters, refer to the Intel® Trace Collector User and Reference Guide.
Save the configuration file as my_settings_timewindows.conf.
Set the VT_CONFIG environment variable to the directory that contains the configuration file:
VT_CONFIG=/<configuration file path name>/my_settings_timewindows.conf
Run the application.
$ mpirun -trace -n 4 ./poisson
> mpiexec -n 4 poisson.exe
Check the resulting trace file:
Open the resulting trace file poisson.stf in the Intel® Trace Analyzer.
In the Function Profile, right-click Group MPI and select Ungroup Group MPI from the context menu.
Go to Charts > Event Timeline to see the activities in each of the four processes individually.
Go to Charts > Time Scale or press the toolbar button to open the time scale.
You can see that the total execution time has been written into the trace file, but the trace data is collected only for the specified period of time (28 milliseconds). The VT_API group stands for the part of the code where trace data collection was off: