From f09b5529c20d7b4e2d81036840a621a53a5c6b04 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Mon, 1 May 2023 00:16:41 +0100 Subject: [PATCH] AP_Logger: Structure: update scripting msg --- libraries/AP_Logger/LogStructure.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Logger/LogStructure.h b/libraries/AP_Logger/LogStructure.h index 261f6e17e56e0b..23c8b1fb606868 100644 --- a/libraries/AP_Logger/LogStructure.h +++ b/libraries/AP_Logger/LogStructure.h @@ -635,7 +635,8 @@ struct PACKED log_Scripting { char name[16]; uint32_t run_time; int32_t total_mem; - int32_t run_mem; + int32_t script_mem; + int32_t run_allocation; }; struct PACKED log_MotBatt { @@ -1158,7 +1159,8 @@ struct PACKED log_VER { // @Field: Name: script name // @Field: Runtime: run time // @Field: Total_mem: total memory usage of all scripts -// @Field: Run_mem: run memory usage +// @Field: mem: memory usage of this script +// @Field: alloc: memory allocated during this run // @LoggerMessage: VER // @Description: Ardupilot version @@ -1303,7 +1305,7 @@ LOG_STRUCTURE_FROM_VISUALODOM \ "FILE", "NIBZ", "FileName,Offset,Length,Data", "----", "----" }, \ LOG_STRUCTURE_FROM_AIS \ { LOG_SCRIPTING_MSG, sizeof(log_Scripting), \ - "SCR", "QNIii", "TimeUS,Name,Runtime,Total_mem,Run_mem", "s#sbb", "F-F--", true }, \ + "SCR", "QNIiii", "TimeUS,Name,Runtime,Total_mem,mem,alloc", "s#sbbb", "F-F---", true }, \ { LOG_VER_MSG, sizeof(log_VER), \ "VER", "QBHBBBBIZHBB", "TimeUS,BT,BST,Maj,Min,Pat,FWT,GH,FWS,APJ,BU,FV", "s-----------", "F-----------", false }, \ { LOG_MOTBATT_MSG, sizeof(log_MotBatt), \