Other Parts Discussed in Thread: SYSBIOS
In our Project we need to know the heap statistics at certain stage of operation for this we have used
Memory_getStats((IHeap_Handle)heapHandle_0, pMemory_Stats_Heap0);
In the value returned in pMemory_Stats_Heap0 which is of type xdc_runtime_Memory_Stats
struct xdc_runtime_Memory_Stats {
xdc_runtime_Memory_Size totalSize;
xdc_runtime_Memory_Size totalFreeSize;
xdc_runtime_Memory_Size largestFreeSize;
};
value of xdc_runtime_Memory_Size totalSize; is returning properly but totalFreeSize and largeFreeSize are returned as zero.
as per SYS/BIOS Inter-Processor Communication (IPC) 1.2 user guide
By default, allocation tracking is often disabled in shared-heap modules for performance reasons. You
can set the HeapBufMP.trackAllocs and HeapMultiBufMP.trackMaxAllocs configuration properties to true
in order to turn on allocation tracking for their respective modules. Refer to the CDOC documentation for
further information.
Need help to enable HeapBufMP.trackAllocs.
I tried assigning
typedef xdc_Bool CT__ti_sdo_ipc_heaps_HeapBufMP_trackAllocs;
__extern __FAR__ const CT__ti_sdo_ipc_heaps_HeapBufMP_trackAllocs ti_sdo_ipc_heaps_HeapBufMP_trackAllocs__C;
#endif
but it was overriden in TRS_SYSBIOS_pe66.c during building the project and error came as already value assigned.
Please advise on how get heap statistics.
Radhai