mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-11 02:26:00 +00:00
30 lines
483 B
C++
30 lines
483 B
C++
/*
|
|
* heap_stats.hpp
|
|
*
|
|
* Created on: Nov 21, 2023
|
|
* Author: Dario
|
|
*/
|
|
|
|
#ifndef RTOS_DEBUG_HEAP_STATS_HPP
|
|
#define RTOS_DEBUG_HEAP_STATS_HPP
|
|
|
|
#include <sta/config.hpp>
|
|
#ifdef STA_DEBUGGING_ENABLED
|
|
|
|
#include <sta/debug/debug.hpp>
|
|
|
|
void printHeapStats();
|
|
|
|
/**
|
|
* @brief Print the current heap stats.
|
|
*/
|
|
# define STA_DEBUG_HEAP_STATS() printHeapStats()
|
|
|
|
#else
|
|
|
|
# define STA_DEBUG_HEAP_STATS() ((void)0)
|
|
|
|
#endif // STA_DEBUGGING_ENABLED
|
|
|
|
#endif /* RTOS_DEBUG_HEAP_STATS_HPP */
|