- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In addition to function and module profiling, can VTune analyze the performance of lines of codes? For example, If I have in my project a source file called foo.cpp, can I use VTune to analyze line 25-85 of this file?
Thank you.
Leech
In addition to function and module profiling, can VTune analyze the performance of lines of codes? For example, If I have in my project a source file called foo.cpp, can I use VTune to analyze line 25-85 of this file?
Thank you.
Leech
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Leech,
when using sampling collection you get the samples associated with the source lines. more samples you have - more statistically correct they are located on the appropriate lines.
in call graph VTune reports results of the collection per function. in addition, you can see the data associated with places where from the function call was made ("so called call sited") You can select only the modules and functions that you are interested in (very recommended!)
you can do it from advance configuration dialog for the call graph collector.
if you are asking about the call graph collection on the "basic-block" level - the answer is that currently not.
if you are asking for some kind off "code-coverage" collection - like how many time a certain line was executed, then again, currently not.
Does it answer your question?
-Daniel
when using sampling collection you get the samples associated with the source lines. more samples you have - more statistically correct they are located on the appropriate lines.
in call graph VTune reports results of the collection per function. in addition, you can see the data associated with places where from the function call was made ("so called call sited") You can select only the modules and functions that you are interested in (very recommended!)
you can do it from advance configuration dialog for the call graph collector.
if you are asking about the call graph collection on the "basic-block" level - the answer is that currently not.
if you are asking for some kind off "code-coverage" collection - like how many time a certain line was executed, then again, currently not.
Does it answer your question?
-Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Daniel,
Thank you very much. Your information is of great help to me. I just read the VTune 6.0 Tutorial, which says that number of clockticks can be displayed for seleted lines of codes in the Source Pane. I guess this can satisfy some of my needs. Don't you think so? I am not so sure about it.
Leech
Thank you very much. Your information is of great help to me. I just read the VTune 6.0 Tutorial, which says that number of clockticks can be displayed for seleted lines of codes in the Source Pane. I guess this can satisfy some of my needs. Don't you think so? I am not so sure about it.
Leech
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Leech,
indeed in source view you can select a range of source code lines (or disasseble) and get the summary for all of them.
Is that what you need?
indeed in source view you can select a range of source code lines (or disasseble) and get the summary for all of them.
Is that what you need?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. That's what I need.

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