Report: Allocation of memory function metrics |
Option: -a |
Compatible Options: b, c, e, f, F, H, k, l, m, n, O, o, r, R, s, T, v, w, W |
Usage: rsm -H -a *.h *.cpp > report.htm |
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, call the 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 ------------------------------------------------------------------------ |