Report: Allocation of memory function
metrics |
Option: -a |
Compatible Options: RSM Option Cross Reference |
Usage: rsm -H
-O report.htm -a *.h *.cpp |
Source: C and C++ |
The memory allocation metrics report summarizes the counts for all the C
and C++ memory functions found in the subject source code. This report is presented
for each file and summarized for the collection of all processed files or project.
Identifying where memory allocation functions are within the source code can
greatly assist the code reviewer in finding problematic usage of these memory functions.
Memory errors account for 90% of all bugs found in C and C++ source code. |
------------------------------------------------------------------------
~~ Memory Allocation/De-allocation Summary ~~
Memory alloc count ....: 0 Memory free count .....: 0
Memory new count ......: 1 Memory delete count ...: 1
------------------------------------------------------------------------
|