Set up VTune for profiling.
1. Prepare your application.
- Get VTune 9.1.
- You MUST build (interested) binaries with PDB. Suggest that all of your binaries should have PDB.
2. Clean up your old PDBs (You might need to do this often.)
|Click menu, Configure->Options||Delete all old PDBs.|
3. Set up search path.
|The easiest way is to put your PDBs with your DLLs. VTune will associate them automatically.
The other way is to add symbol files search path for VTune.
VTune also support symbol server. So you can add a path to your symbol server.
4. Create VTune project
|Set path to your executable file.
Then click “Finish”.
5. Start profiling.
|After a profiling scenario is completed and app is closed, you will get this view.
Select target process and go Module view
|Double click the module to go deeper.
If you don’t find your modules here, put PDB to executing folder and try again.
|Double click the function to go “Source” view
If you don’t see function name here, please go step 6.
6. Check if module association is correct
|Check if the binary file and symbol file is correct. If not, click “Edit” to re-associate it.|