mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #1674 from martinbudden/bf_task_instrumentation
Improved scheduler and task timing instrumentation
This commit is contained in:
commit
975f355b51
10 changed files with 79 additions and 31 deletions
|
@ -519,6 +519,7 @@ static const char * const lookupTableDebug[DEBUG_COUNT] = {
|
|||
"DFILTER",
|
||||
"ANGLERATE",
|
||||
"ESC_TELEMETRY",
|
||||
"SCHEDULER",
|
||||
};
|
||||
|
||||
#ifdef OSD
|
||||
|
@ -3646,6 +3647,9 @@ static void cliTasks(char *cmdline)
|
|||
}
|
||||
}
|
||||
}
|
||||
cfCheckFuncInfo_t checkFuncInfo;
|
||||
getCheckFuncInfo(&checkFuncInfo);
|
||||
cliPrintf("RX Check Function %17d %7d %25d\r\n", checkFuncInfo.maxExecutionTime, checkFuncInfo.averageExecutionTime, checkFuncInfo.totalExecutionTime / 1000);
|
||||
cliPrintf("Total (excluding SERIAL) %23d.%1d%% %4d.%1d%%\r\n", maxLoadSum/10, maxLoadSum%10, averageLoadSum/10, averageLoadSum%10);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue