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 64 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 : 261  
Lines : 523  

[-] File details

File Name Lines of Code Lines Generated On
spring4.c 132 234 06/05/2016 3:18 PM
spring4.h 85 184 06/05/2016 3:18 PM
rtwtypes.h 44 105 06/05/2016 3:18 PM

2. Global Variables [hide]

Global variables defined in the generated code.
Global Variable Size (bytes) Reads / Writes Reads / Writes in a Function
[+] rtM_ 521 0* 0*
[+] rtDW 16 4  2 
[+] rtX 16 7  4 
Total 553 11 
* 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
      spring4_initialize 0 0 29 37 1
[+]  rt_ertODEUpdateContinuousStates 208* 200 51 76 6
[+]  spring4_step 208* 0 18 44 4
* Recursion occurs in this function call path.