Configure Analysis

Intel Inspector offers a range of preset memory analysis types to help you control analysis scope and cost. The analysis type with the narrowest scope minimizes the load on the system and the time and resources required to perform the analysis; however, it detects the narrowest set of errors and provides minimal details. The analysis type with the widest scope maximizes the load on the system and the time and resources required to perform the analysis; however, it detects the widest set of errors and provides context and the maximum amount of detail for those errors.

To configure a memory error analysis, choose a memory error analysis type.

Choose a Memory Error Analysis Type

To display an Analysis Type window similar to the following:

  • From the Visual Studio* menu, choose Tools > Intel Inspector XE 2013 > New Analysis....

  • From the Standalone Intel Inspector GUI menu, choose File > New > Analysis....

Analysis Type window

Note

Your screen includes interactive debugging options if you are working in the Visual Studio* IDE.

1

Use the Navigation toolbar to navigate among the Intel Inspector windows. The buttons on the toolbar vary depending on the displayed window.

2

Use the Analysis Type drop-down list to choose an analysis type category: Memory Error Analysis, Threading Error Analysis, or Custom Analysis Types.

Choose the Memory Error Analysis type category.

Note

This tutorial covers memory error analysis types, which you can use to search for resource leak, incorrect memcpy call, invalid deallocation, invalid memory access, invalid partial memory access, memory growth, memory leak, memory not deallocated, mismatched allocation/deallocation, missing allocation, uninitialized memory access, and uninitialized partial memory access errors. Use threading error analysis types to search for data race, deadlock, lock hierarchy violation, and cross-thread stack access errors.

3

Use the configuration slider to choose a preset analysis type and the corresponding gauges to assess the cost of that choice. The preset analysis type at the top of the slider has the narrowest scope; the preset analysis type at the bottom has the widest.

Choose the Detect Memory Problems preset analysis type.

The Analysis Time Overhead gauge helps you quickly estimate the time it may take to collect a result using this preset analysis type. Time is expressed in relation to normal application execution time. For example, 2x - 20x is 2 to 20 times longer than normal application execution time. If normal application execution time is 5 seconds, estimated collection time is 10 to 100 seconds.

The Memory Overhead gauge helps you quickly estimate the memory the Intel Inspector may consume to detect errors using this preset analysis type. Memory is expressed in blue-filled bars.

Note

The gauge does not show memory used by the running application during analysis.

4

Use the checkbox(es) and drop-down list(s) to fine-tune some, but not all, preset analysis type settings.

Note

If you need to fine-tune more analysis type settings, you can choose another analysis type or create a custom analysis type.

5

Use the Details region to view all current settings for this analysis type.

6

Use the Command toolbar to control analysis runs and perform other functions. For example, use the Project Properties button to display the Project Properties dialog box, where you can change the default result directory location, set parameters to potentially speed up analysis, and perform other project configuration functions.

If you experimented with various settings, make sure you choose the Detect Memory Problems preset analysis type (and ensure your settings match the image above) before proceeding.

Key Terms

Analysis


Studio-specific supplemental documentation may be available at <install-dir>\<studio>\documentation\ .

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