Intel® Advisor Help
By default, Intel® Advisor analyzes performance of a whole application. In some cases, you may want to focus on the most time-consuming section or disable collection for the initialization or finalization phases. This can decrease collection overhead.
Intel Advisor supports the MPI region control with the MPI_Pcontrol() function. This function allows you to enable and disable collection for specific application regions in the source code. The region control affects only MPI and OpenMP* metrics, while other metrics are collected for the entire application.
To use the function, add it to your application source code as follows:
advisor --collect=survey --start-paused --project-dir=./advi_results -- ./mpi_sample
For code snippet examples, see Region Control with MPI_Pcontrol.