Static Code Metrics Report

The static code metrics report provides statistics of the generated code. Metrics are estimated from static analysis of the generated code using the C data types specified in the 'Device details' section of the Configuation Parameter > Hardware Implementation pane: char 8, short 16, int 32, long 32, float 32, double 64, pointer 32 bits. Actual object code metrics might differ due to target specific compiler and platform settings. Consult the Code Generation Advisor for options to improve code efficiency.

Table of Contents

  1. File Information
  2. Global Variables
  3. Function Information

1. File Information [hide]

[-] Summary (excludes ert_main.c)

Number of .c files : 1  
Number of .h files : 2  
Lines of code : 446  
Lines : 771  

[-] File details

File Name Lines of Code Lines Generated On
van_der_pol_osc.c 318 486 06/05/2016 3:58 PM
van_der_pol_osc.h 90 188 06/05/2016 3:58 PM
rtwtypes.h 38 97 06/05/2016 3:58 PM

2. Global Variables [hide]

Global variables defined in the generated code.
Global Variable Size (bytes) Reads / Writes Reads / Writes in a Function
[+] rtM_ 389 0* 0*
[+] rtDW 16 5  3 
[+] rtX 16 6  3 
     rtInf 8 4  2 
     rtMinusInf 8 2  1 
     rtNaN 8 4  3 
     rtInfF 4 2  1 
     rtMinusInfF 4 2  1 
     rtNaNF 4 1  1 
Total 457 26 
* The global variable is not directly used in any function.

3. Function Information [hide]

View function metrics in a call tree format or table format. Accumulated stack numbers include the estimated stack size of the function plus the maximum of the accumulated stack size of the subroutines that the function calls.
View:Call Tree | Table
Function Name Accumulated Stack Size (bytes) Self Stack Size (bytes) Lines of Code Lines Complexity
[+]  van_der_pol_osc_initialize 24 0 30 43 1
      rtIsInfF 0 0 1 4 2
      rtIsNaNF 0 0 1 4 2
[+]  rt_ertODEUpdateContinuousStates 200* 176 51 76 6
[+]  van_der_pol_osc_step 200* 0 21 53 4
* Recursion occurs in this function call path.