I am using Vtune Amplifier XE2013....
I tried advanced hotspots analysis and when i double click on the hotspot ,it is showing only assembly code.
It should also show source code.
Only if you've compiled and linked with debug info. AND, if you are on linux, make sure you don't "strip" the binary. Use the 'file' command to verify that it is not stripped (it will say it is stripped).
I am using it on windows 8 with visual studio 2013...
Please check if you used compiler option "/Zi" and linker option "/DEBUG" to generate PDB file.
As you are on Windows you can run your program under windbg and check if debugger is able to display source code.
You can use also SymChk.exe in order to check debug symbols.
Many years ago, I used dumpbin.exe which came from Microsoft* C/C++ compiler. Fortunately, it still exist in Visual Studio 2012 I checked.
This utility can check symbols from executable/pdb files.
Yes of course there is dumpbin.exe.
this is my source code,and when I run it in VTune it is showing only assembly code.
I am in doubt which kind of application it supports?
@ Hemal P.
It is a short run program, print function is major work in stdio library - without source code. It means there was no hot in your source code even your code called library. You may try to add more workload in your source, for example, put a loop to do "printf". Then you will see source view of VTune, if you built with debug info to generate pdb file.
>>>It is a short run program, print function is major work in stdio library >>>
Actually more work is done by OS implementation going all the way down to display driver. In such a case VTune can possibly display callees of printf. I hope so.
Best thing to do is use one of the sample apps included with the VTune Amplifier XE product, e.g., tachyon, matrix, etc.
Also, you mentioned Windows* 8. Make sure you review the Release Notes on limitations for Windows 8. You can't use certain sampling modes. For example, RN says: