- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Does __itt_resume/__itt_pause work for "Performance Snapshot"?
It works for other analysis such as "Hotspots", "Threading" and etc.
The version of my VTune is 2022.2.0.
Thank you.
Ethan Kim
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for posting in Intel Communities.
itt_resume() and itt_pause() works fine with performance snapshot. It might not be visible in the results but there will be some difference in the elapsed time. We tried using itt_resume() and itt_pause() functions in a sample code and did performance snapshot analysis and we could observe some difference in the elapsed time.
If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!
Regards,
Shyam Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply.
I'm still not sure that __itt_resume works for 'Performance Snapshot'.
Below is a sample source code that I made just for this.
I compiled it as 'VS2019 Console Application x64 Release' with all other configuration being default.
#include <iostream>
#include <thread>
#include "C:/Program Files (x86)/Intel/oneAPI/vtune/latest/include/ittnotify.h"
#pragma comment(lib, "C:/Program Files (x86)/Intel/oneAPI/vtune/latest/lib64/libittnotify.lib")
int main()
{
double dSum = 0.0;
__itt_resume();
std::this_thread::sleep_for(std::chrono::seconds(5));
for (int i = 0; i < INT_MAX; i++)
dSum += 1.0;
std::this_thread::sleep_for(std::chrono::seconds(5));
__itt_pause();
std::cout << dSum;
}
If I start 'Hotspots' by clicking 'Start Paused', 'Collection is paused' changes to 'Collecting Hotspots data'.
=>
If I start 'Performance Snapshot' by clicking 'Start Paused', 'Collection is paused' does not change to 'Collecting ... data'.
Can you take a look at this?
Thank you again.
Best Regards,
Ethan Kim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We used the same code which you provided and it worked fine while performance snapshot.
If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!
Regards,
Shyam Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply.
Just for sure, did you start analysis with "Start Paused"?
Very awkward situation happens to me.
If I run VTune as administrator, it seems that _itt_resume does NOT work. Please see below.
If I run VTune 'NOT' as administrator, __itt_resume does work. Please see below.
I will try with a whole new PC.
My current PC has an antivirus program and Symatec Data Loss Prevention solution installed. Can these disturb VTune?
Best Regards,
Ethan Kim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are working on this internally.
Will let you know once we get an update.
Thanks
Shyam Sundar

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