add instrumentation code
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
2023-03-28 14:59:31 +02:00
parent 746254a838
commit 1f6c986a0c
7 changed files with 89 additions and 67 deletions

View File

@ -23,10 +23,10 @@ ReturnValue_t PersistentLogTmStoreTask::performOperation(uint8_t opCode) {
if (fileHasSwapped) {
someFileWasSwapped = fileHasSwapped;
}
if(ctx.vcBusyDuringDump) {
if (ctx.vcBusyDuringDump) {
vcBusyDuringDump = true;
}
if(ctx.dumpedBytes - ctx.bytesDumpedAtLastDelay >= 2048) {
if (ctx.dumpedBytes - ctx.bytesDumpedAtLastDelay >= 2048) {
byteFlowControl = true;
ctx.bytesDumpedAtLastDelay = ctx.dumpedBytes;
}
@ -45,9 +45,9 @@ ReturnValue_t PersistentLogTmStoreTask::performOperation(uint8_t opCode) {
TaskFactory::delayTask(100);
} else if (someFileWasSwapped) {
TaskFactory::delayTask(20);
} else if(vcBusyDuringDump) {
} else if (vcBusyDuringDump) {
TaskFactory::delayTask(20);
} else if(byteFlowControl) {
} else if (byteFlowControl) {
TaskFactory::delayTask(10);
} else {
// TODO: Lower this as much as possible...