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 32 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

Number of .c files : 7  
Number of .h files : 9  
Lines of code : 1,325  
Lines : 2,081  

[-] File details

File Name Lines of Code Lines Generated On
BSER_BattSocCalc.c 775 908 07/07/2021 5:01 PM
BSER_BattSocCalc.h 114 288 07/07/2021 5:01 PM
SocParameter.c 99 139 07/07/2021 5:01 PM
look2_iflf_binlcapw.c 74 132 04/28/2021 7:42 PM
SocParameter.h 63 84 04/28/2021 7:42 PM
rtwtypes.h 38 90 04/28/2021 7:42 PM
look1_iflf_binlcapw.c 37 81 04/28/2021 7:42 PM
look1_iu32lftf_binlcapw.c 37 81 04/28/2021 7:42 PM
BSER_BattSocCalc_private.h 36 77 07/07/2021 5:01 PM
rtmodel.h 13 41 07/07/2021 5:01 PM
BSER_BattSocCalc_types.h 10 36 07/07/2021 5:01 PM
look2_iflf_binlcapw.h 7 26 04/28/2021 7:42 PM
look1_iflf_binlcapw.h 6 25 04/28/2021 7:42 PM
look1_iu32lftf_binlcapw.h 6 25 04/28/2021 7:42 PM
BSER_BattSocCalc_data.c 5 31 07/07/2021 5:01 PM
const_params.c 5 17 04/28/2021 7:42 PM

2. Global Variables [hide]

Global variables defined in the generated code.
Global Variable Size (bytes) Reads / Writes Reads / Writes in a Function
[+] BSER_BattSocCalc_DW 120 142  141 
[+] BSER_BattSocCalc_B 43 86  84 
     BSER_LowSocCorLowCellVoltThres2_C 4 2  2 
     BSER_LowSocCorLowCellVoltThres3_C 4 2  2 
     BSER_cSocDchAhFulRev 4 2  2 
     BSER_rRSocTableUpLimit_C 4 15  15 
     BSER_rSoc 4 3  2 
     BSER_rSocAvrg 4 3  2 
     BSER_rSocDspl 4 4  3 
     BSER_rSocMax 4 3  2 
     BSER_rSocMin 4 3  2 
[+] BSER_BattSocCalc_Y 1 7  6 
     BSER_DispSOCZero_flg 1 5  5 
     BSER_flgSocSave 1 2  1 
     BSER_stSocFulHld 1 2  2 
Total 203 281 

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
[+]  BSER_BattSocCalc_step 120 80 699 768 109
[+]  BSER_BattSocCalc_initialize 0 0 9 19 1