feat: 按任务统计已经alloc的内存大小
【背景】 m核需补充shell命令,按任务统计已经alloc的内存大小 【修改方案】 1.新增在task命令中,在打印task info前遍历所有内存节点,统计各任务所占用的内存节 点大小,在打印时将其打出。 2.内存节点中,taskid所占位数随系统最大任务数调整 【影响】 对现有的产品编译不会有影响。 re #I44WNU Signed-off-by: lanleinan <lanleinan@163.com> Change-Id: I080b5dd056966784c0752408f9e320ca0e97c7f7
This commit is contained in:
@@ -800,6 +800,14 @@ extern UINT8 *m_aucSysMem0;
|
||||
#define LOSCFG_SHELL_PRIO 3
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @ingroup los_config
|
||||
* Configuration item to get task used memory.
|
||||
*/
|
||||
#ifndef LOSCFG_TASK_MEM_USED
|
||||
#define LOSCFG_TASK_MEM_USED 0
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
}
|
||||
|
||||
@@ -469,6 +469,7 @@ extern UINT32 LOS_MemIntegrityCheck(const VOID *pool);
|
||||
extern VOID LOS_MemUnlockEnable(VOID *pool);
|
||||
|
||||
extern UINT32 OsMemSystemInit(VOID);
|
||||
extern VOID OsTaskMemUsed(VOID *pool, UINT32 *outArray, UINT32 arraySize);
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user