Commit 0866241
authored
runtime % support for FreeRTOS V11 (#57)
* runtime % support for FreeRTOS V11
In V11, FreeRTOS changed ulTotalRunTime from an integer to an array of
integers. On SMP, the array has one entry per CPU, but it's still a
one-element array even without SMP support compiled in.
Try finding the length of the array with sizeof(a)/sizeof(a[0]). If that
succeeds, sum all CPU runtimes to get the total runtime. If it fails,
assume V10 or earlier and fall back to the previous technique.
* correct FreeRTOS V11 runtime stats detection in help text generation
* simplify implementation of FreeRTOS V11 runtime % support
Convert `updateTotalRuntime()` to an async function. Use
`RTOSVarHelper.getVarChildren()` to check for the presence of children
and to get their values.1 parent dc5d9c7 commit 0866241
1 file changed
+14
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
353 | 357 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
364 | 363 | | |
365 | 364 | | |
366 | 365 | | |
| |||
0 commit comments