I mostly use Cortex-M0 based MCUs. They are missing some debugging hardware element that is required for the ChibiOS statistics module to work. So this is how I get load statistics instead:
I modify the idle thread enter and exit hooks, disable a GPIO on idle enter, enable the GPIO on idle leave ...
Search found 3 matches
- Thu Aug 19, 2021 9:14 am
- Forum: ChibiOS/RT
- Topic: Questions on CPU load using statistic module.
- Replies: 5
- Views: 4501
- Thu Aug 19, 2021 9:08 am
- Forum: ChibiOS/RT
- Topic: Questions on CPU load using statistic module.
- Replies: 5
- Views: 4501
Re: Questions on CPU load using statistic module.
Hi,
The stats module does not take into account the time spent in ISRs but that should be small compared to time spent into threads. ISR time is added to the threads preempted by the IRQ. Over time ISR time is statistically spread on all threads proportionally to their CPU usage.
Giovanni
Thank ...
The stats module does not take into account the time spent in ISRs but that should be small compared to time spent into threads. ISR time is added to the threads preempted by the IRQ. Over time ISR time is statistically spread on all threads proportionally to their CPU usage.
Giovanni
Thank ...
- Wed Aug 18, 2021 8:45 am
- Forum: ChibiOS/RT
- Topic: Questions on CPU load using statistic module.
- Replies: 5
- Views: 4501
Questions on CPU load using statistic module.
hi ,
I am trying to use statistical module for deriving the CPU load, but i have some question that I would ask the expert here.
Currently , my system(tickless) is running quite a number of thread, I understand that the statistical module could be able to calculate the time for each thread and ...
I am trying to use statistical module for deriving the CPU load, but i have some question that I would ask the expert here.
Currently , my system(tickless) is running quite a number of thread, I understand that the statistical module could be able to calculate the time for each thread and ...