35extern miosix::FastMutex traceMutex;
39inline void TRACE(
const char* format, ...)
41 miosix::Lock<miosix::FastMutex> lock(traceMutex);
44 va_start(argptr, format);
47 vprintf(format, argptr);
58#define TRACE(...) (void)0
62#ifdef LOG_THREAD_STACK
67inline void LOG_STACK(std::string threadName)
70 printf(
"[STACK %s] Abs: %d, Curr: %d, Size: %d\n", threadName.c_str(),
71 (
int)MemoryProfiling::getAbsoluteFreeStack(),
72 (
int)MemoryProfiling::getCurrentFreeStack(),
73 (
int)MemoryProfiling::getStackSize());
80#define LOG_STACK(...) (void)0
long long getOldTick()
Get the current time in milliseconds.
This file includes all the types the logdecoder script will decode.