Now that we have grabbed the Intel Parallel Studio Professional Edition and installed its many components, we dive into the installation directory and locate the Intel Inspector tool. Here we run a batch file to setup some system environment variables, we then navigate through the installation directory to locate the GUI.exe and samples that you can work on after the course for practice.
- (Speaker) Before using the intel inspector, we need to do some first-time setup steps. These steps only need to be done once. After that, the tool can be used simply by creating new projects. To start off, open up a command prompt as admin, and navigate to the installation directory. Once inside the inspector 2017 directory in our command prompt, let's run the batch file, inspecexe-vars batch file. Next, we are going to add two system environment variables, so when we are debugging an application, the debugger can show us function names that the application is calling.
To do this, let's go to the control panel and make sure the view shows small icons. Next, click on system, then click on advanced system settings to the left. Under the advanced tab, click on environment variables. Under system variables, we're going to add two variables. Click on the new button. For the variable name, the first variable we're going to add is NT_SYMBOL_PATH.
For the variable value, we're going to type this. What this path is, is it points to the Microsoft symbols server. It will let the intel inspector show us the names of the Windows API's that are called as a result of function calls the application makes. This way, even without having access to the source code, we can still obtain insight about the application's behavior. We will see this in action later on. For now, click on OK. We're going to add one more variable, so click on new again, and for the variable name, let's put NT_SYMCACHE_PATH.
For the variable value, put C-drive SymCache. This variable is for caching our downloaded Microsoft symbols locally onto our machine so that the symbols load faster and we do not need to download from the Microsoft symbols server every time. This saves us time when debugging. Once you've added the value, click on OK, then click on OK, and then OK. Now, that's it for the system environment variables. Click on X to exit out of the control panel.
One last step to perform: we're going to add a desktop shortcut for the intel inspector. This way, we don't need to navigate to the installation directory every time we want to use the tool. Let's click on the Windows start button at the bottom, and under the recently added section, you should see the intel inspector 2017. Simply drag and drop it over to our desktop, and that's it, we are done setting up the intel inspector.
- Installing Intel Inspector XE
- Setting up OpenCV
- Detecting memory leaks
- Visualizing memory usage growth
- Conducting memory leak analysis
- Fixing memory leaks in source code