Thread Tracing and Scheduling Update #379
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user