Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h b/runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h
index 2b960e259..13a9faee9 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h
@@ -38,12 +38,23 @@ typedef void* etMemory_alloc(struct etMemory* heap, etUInt16 size);
* \param obj pointer to the memory returned
* \param size the size in bytes of the memory returned
*/
-typedef void etMemory_free(struct etMemory* heap, void* obj, etUInt16 size);
+typedef void etMemory_free(struct etMemory* heap, void* obj);
+
+typedef struct etMemoryStatistics {
+ const char* name;
+ etUInt32 maxUsed;
+ etUInt32 nFailingRequests;
+ struct etMemoryStatistics* next;
+}
+etMemoryStatistics;
typedef struct etMemory {
/** size of the heap in bytes */
etUInt32 size;
+ /** statistical data made available through the runtime */
+ etMemoryStatistics statistics;
+
/** the configured allocation method */
etMemory_alloc* alloc;
/** the configured freeing method */

Back to the top