How to analyze an application without having a Visual Studio* project

Intel® Parallel Amplifier and Intel® Parallel Inspector are fully integrated applications within Microsoft Visual Studio* and so require a Visual Studio project to store the configuration needed for testing.  So how do you use the Amplifier or Inspector on an application for which you only have the binary files?

There are two ways to create an Amplifier or Inspector analysis project when all you have is the .exe and associated .dlls.  The first uses a command prompt window. Within the command prompt window, type a command similar to the following:

devenv /debugexe MyApplication.exe --app-param1 value1 --app-switch1

This command will start the Visual Studio IDE, create a project for MyApplication.exe application and set the application's options.  Next, right-click the project in the Visual Studio Solution Explorer or find the tool bar and start Amplifier or Inspector as usual. The results will be stored in My Amplifier or Inspector Results directory, which is created near the executable. You can override where the results are stored in preferences and target them to a specific directory.

The second method utilizes the Visual Studio environment.  Start Visual Studio and create a solution based on a single executable file: File -> Open -> Project/Solution.

OpenProject.JPG

Select your .exe file. A solution with the same name as the .exe file is created.  Save the solution, then right-click the project in the Visual Studio Solution Explorer or find the tool bar and start Amplifier or Inspector as usual.

Tags:
For more complete information about compiler optimizations, see our Optimization Notice.

Comments

's picture

i hope it works