Thread Tracing and Scheduling Update #379

Merged
muellerr merged 11 commits from thread_tracing into develop 2023-02-14 15:59:12 +01:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit a57384f6c4 - Show all commits

View File

@ -2,9 +2,9 @@
#include "fsfw/serviceinterface.h" #include "fsfw/serviceinterface.h"
void trace::threadTrace(uint32_t& counter, const char* name) { void trace::threadTrace(uint32_t& counter, const char* name, unsigned div) {
counter++; counter++;
if (counter % 5 == 0) { if (counter % div == 0) {
sif::debug << name << " running" << std::endl; sif::debug << name << " running" << std::endl;
} }
} }

View File

@ -7,7 +7,7 @@
namespace trace { namespace trace {
void threadTrace(uint32_t& counter, const char* name); void threadTrace(uint32_t& counter, const char* name, unsigned div = 5);
} }