Intel® Inspector Help
Intel Inspector distinguishes among Memory leak, Memory not deallocated, and Memory growth problem types in the following manner:
Memory leak problems occur when a block of memory is allocated, never deallocated, and not reachable (there is no pointer available to deallocate the block). Severity level =
(Error).
Memory not deallocated problems occur when a block of memory is allocated, never deallocated, but still reachable at application exit (there is a pointer available to deallocate the block). Severity level =
(Warning).
Memory growth problems occur when a block of memory is allocated, but not deallocated, within a specific time segment during application execution. Severity level =
(Warning).
Intel Inspector customarily displays memory leaks at the end of an analysis run when an application exits; however, you can also use the Intel Inspector on-demand memory leak detection feature to gather memory leak information while an application is running. This is useful if:
An application does not terminate (such as a server process).
You want memory leak information, but you do not want to wait for an application to terminate.
You want to determine if memory is leaked during a specific interval of application execution, or during a specific user action.
You want to discard information about allocations performed during initialization as a way of filtering out allocations that are not currently of interest.
To find memory leaks on demand:
Prerequisites:
Select the Enable on-demand leak detection checkbox when configuring a memory error analysis.
Run the memory error analysis.
Steps:
For more precision, consider using the GUI-based on-demand memory leak detection commands in tandem with APIs for custom memory allocation.