- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everybody,
I am trying to measure how much time my C code is taking with Vtune analyzer. I am using Vtune for the first time so don't know the step to follow to get my desired result meaning measuring timing of my C code. The code has a for loop which runs finite no of times it may run for miliseconds too. Is it possible to measure that small time with vtune?
Please let me know if anybody has doubt in my question.
Thanks,
Roopal Patel
I am trying to measure how much time my C code is taking with Vtune analyzer. I am using Vtune for the first time so don't know the step to follow to get my desired result meaning measuring timing of my C code. The code has a for loop which runs finite no of times it may run for miliseconds too. Is it possible to measure that small time with vtune?
Please let me know if anybody has doubt in my question.
Thanks,
Roopal Patel
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can set a lower TBS sample after value, so that VTune time based events occur at a smaller interval, but this will soon make the overhead of VTune significant. In any case, you will get only an approximation of what portion of you sampled interval was spend executing that code.
As you intend to time a specific section of code, you may be able to time millisecond intervals more accurately, by _rdtsc() timer.
As you intend to time a specific section of code, you may be able to time millisecond intervals more accurately, by _rdtsc() timer.

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