How to run application with VTune™ Analyzer with required environments

Étiquettes:
Version 1, Created by Peter Wang on 08/10/2008

 

Symptom(s):
When the user invoked the application by VTune™ Performance Analyzer - when sampling data collecting or call graph data collecting, there was an error dialog to show like as "libmmdd.dll missed" message, so application can't run. 

Cause:
This is due to missing of the application required environment setting. For example, find PATH to call necessary DLLs, etc. 
 
Solution:
There are two methods to solve this problem.

1) The user can run VTune™ Performance Analyzer from a) Visual Studio* 2005 Command Prompt, or b) Intel® C++ Compiler build environment for applications running IA-32, for example run C:\Program Files\Intel\VTune\Shared\Bin\vtuneenv.exe in prompt

2) Don't invoke VTune™ Performance Analyzer from prompt, just invoke tool from menu/desk-shortcut. Create activity for sampling or call graph => modify activity => select target application => click "Configure" button => click "Advance.." button on dialog => there is "Application to launch..." dialog to allow user of unselecting "Use default environments" => then the user can modify Environment Variable, or add new variables.
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.