First at all, please refer to /en-us/articles/use-vtuneapi-in-intel-parallel-amplifier-for-selective-code-profiling which educates the user how to collect performance data in interest of code when using Intel® Parallel Amplifier.
But this is NOTfor Intel® Parallel Inspector, even if there are VtuneApi.h and VtuneApi.dll under the Parallel Inspector's directory. The user can try VtuneApi.h and VtuneApi.dll but they never work in your code. See below example:
Actually Intel® Parallel Inspector will check all memory errors in above code, vtPause and vtResume are not effective. This is same for thread errors checking.
[DISCLAIMER: The information on this web site is intended for hardware system manufacturers and software developers. Intel does not warrant the accuracy, completeness or utility of any information on this site. Intel may make changes to the information or the site at any time without notice. Intel makes no commitment to update the information at this site. ALL INFORMATION PROVIDED ON THIS WEBSITE IS PROVIDED "as is" without any express, implied, or statutory warranty of any kind including but not limited to warranties of merchantability, non-infringement of intellectual property, or fitness for any particular purpose. Independent companies manufacture the third-party products that are mentioned on this site. Intel is not responsible for the quality or performance of third-party products and makes no representation or warranty regarding such products. The third-party supplier remains solely responsible for the design, manufacture, sale and functionality of its products. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. *Other names and brands may be claimed as the property of others.]