- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have lengthy C++ code, and I want profiling for just one part. I have
// CODE-takes several minutes
__itt_resume();
// CODE TO BE PROFILED
__itt_pause();
// MORE CODE
I start VTune with data collection paused. Almost immediately I get the message shown in the attached. Collection stops well before the code to be profiled has been reached.
What do I need to do to get my code profiled?
64-bit Windows 10, VS2022. Project is native C++, 64-bit release build.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting in Intel communities.
We recommend increasing application execution time (i.e. make it run longer) or specifying a lower sampling rate in your project settings
Also, you can refer to the solution in the troubleshooting guide here.
And, you can find some configuration guides here and here
Please try out the above-suggested methods. If you are still facing issues, kindly get back to us with the below details:
1. Processor details
2. Sample reproducer code(A code similar to your code that replicates the issue) on which you are performing the analysis.
3. The exact steps you followed and the type of analysis you are performing.
4. The output of the self-checker logs. This can be obtained by running the below command:
In Linux:
<VTune_installation_directory>\bin64\vtune-self-checker.sh
example: /opt/intel/oneapi/vtune/2023.0.0/bin64/vtune-self-checker.sh
In Windows:
<VTune_installation_directory>\bin64\vtune-self-checker.bat
Otherwise, if this resolves your issue, please make sure to accept this as a solution. This would help others with similar issues. Thank you!
Regards,
Remya Premdas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have created a sample app based on the code sample I showed (solution attached). I started data collection delayed. It produces the following Collection log ( (( )) are my annotations):
Data collection is completed with warnings
Aug 18 2023 11:36:22 The result file 'C:\Users\Goedel\source\repos\VTune delayed start test\Intel® VTune™ Profiler Results\VTune delayed start test\r001hs\r001hs.vtune' is created and added to the project . Please see warning messages for details.
Finalization completed with warnings
Aug 18 2023 11:36:27 Result finalization has completed with warnings that may affect the representation of the analysis data. Please see details below.
Your command for self-checker does not work on a Windows system. Instead, I used
"C:\Program Files (x86)\Intel\oneAPI\vtune\2023.2.0\bin64\vtune-self-checker.bat"
The result of this is attached.
Processor is Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz, 3001 Mhz, 18 Core(s), 36 Logical Processor(s), 256 GB RAM. Using Visual Studio 2022 Version 17.6.5.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We were unable to reproduce the issue from our end for the sample which you have shared.
Have you opened VTune in administrator mode for running the analysis? If not, we suggest you open VTune as an administrator (right-click on Intel VTune> Run as administrator) and run the same analysis for the same sample and see if you are getting this error
Also, from the self_checker_logs shared, we see that most of the HW event-based analyses are failing. This could be because you are not running the command in admin mode. In order to do this,
- open a command prompt in admin mode(right click on command prompt> Run as administrator)
- Source the oneAPI variables using the below command:
C:\Program Files (x86)\Intel\oneAPI>setvars.bat --force
- check if the drivers are loaded correctly, using the below commands:
C:\Program Files (x86)\Intel\oneAPI\vtune\latest\bin64>amplxe-sepreg.exe -s
C:\Program Files (x86)\Intel\oneAPI\vtune\latest\bin64>amplxe-sepreg.exe -i
(No errors would be present if the drivers are loaded correctly)
- Run the command for getting the self-checker logs
"C:\Program Files (x86)\Intel\oneAPI\vtune\2023.2.0\bin64\vtune-self-checker.bat"
If running the analysis in VTune admin mode is still throwing errors, then please share with us the self-checker logs by following the above steps.
Otherwise, If this resolves your issue, make sure to accept this as a solution. This would help others with similar issues. Thank you!
Regards,
Remya Premdas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We haven't heard back from you. Is your issue resolved?
Regards,
Remya Premdas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel
Regards,
Remya Premdas

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page