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 Configuration Parameter > Hardware Implementation pane: char 8, short 16, int 32, long 32, float 32, double 64, pointer 64 bits. If your model contains a Variant block, the Static Code Metrics Report does not contain data for the inactive variant. 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 : 2  
Number of .h files : 2  
Lines of code : 152  
Lines : 426  

[-] File details

File Name Lines of Code Lines Generated On
rtwtypes.h 67 148 10/29/2019 9:27 AM
GlobalPosition_sil_sil_ec.h 45 128 10/29/2019 9:27 AM
GlobalPosition_sil_sil_ec.c 33 102 10/29/2019 9:27 AM
GlobalPosition_sil_sil_ec_data.c 7 48 10/29/2019 9:27 AM

2. Global Variables [hide]

Global variables defined in the generated code.
Global Variable Size (bytes) Reads / Writes Reads / Writes in a Function
[+] GlobalPosition_sil_sil_ec_P 32 4  2 
[+] GlobalPosition_sil_sil_ec_DW 16 6  4 
[+] GlobalPosition_sil_sil_ec_Y 16 2  2 
[+] GlobalPosition_sil_sil_ec_U 12 3  3 
[+] GlobalPosition_sil_sil_ec_M_ 8 0* 0*
Total 84 15 
* 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
[+]  GlobalPosition_sil_sil_ec_step 16 16 13 43 1
      GlobalPosition_sil_sil_ec_initialize 0 0 4 10 1
      GlobalPosition_sil_sil_ec_terminate 0 0 0 4 1