-#if (INCLUDE_MEMMANG_EVENTS == 1)\r
-/* Current heap usage. Always updated. */\r
-static uint32_t heapMemUsage = 0;\r
+#if (INCLUDE_MEMMANG_EVENTS == 1) && (TRACE_SCHEDULING_ONLY == 0)\r
+ /* Current heap usage. Always updated. */\r
+ static uint32_t heapMemUsage = 0;\r