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 : 252  
Lines : 500  

[-] File details

File Name Lines of Code Lines Generated On
SMD_TF.c 130 222 06/05/2016 3:55 PM
SMD_TF.h 84 181 06/05/2016 3:55 PM
rtwtypes.h 38 97 06/05/2016 3:55 PM

2. Global Variables [hide]

Global variables defined in the generated code.
Global Variable Size (bytes) Reads / Writes Reads / Writes in a Function
[+] rtM_ 413 0* 0*
[+] rtX 16 6  3 
[+] rtDW 8 2  1 
Total 437 8 
* 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
      SMD_TF_initialize 0 0 30 38 1
[+]  rt_ertODEUpdateContinuousStates 76* 68 44 65 5
[+]  SMD_TF_step 84* 8 18 40 4
* Recursion occurs in this function call path.