This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I test RTX166 load?

How can I test RTX166 load?
Is it possible to measure cpu busy rate?

Parents
  • Here is how I did it.
    I defined a task which would do only one thing: increment a counter. Then I defined a timer interrupt to work out fom the contents of the counter how long CPU spends executing this task. This would be "CPU idle time."
    Of course, this approach is not without problems. It steals time from other tasks, since RTX tiny is supposed to give all active tasks an equal share of CPU time. And it doesn't put CPU into low power mode.
    The good thing is, it gives you some idea about CPU utilization and helps find bootlenecks in the program which require optimization.

    - mike

Reply
  • Here is how I did it.
    I defined a task which would do only one thing: increment a counter. Then I defined a timer interrupt to work out fom the contents of the counter how long CPU spends executing this task. This would be "CPU idle time."
    Of course, this approach is not without problems. It steals time from other tasks, since RTX tiny is supposed to give all active tasks an equal share of CPU time. And it doesn't put CPU into low power mode.
    The good thing is, it gives you some idea about CPU utilization and helps find bootlenecks in the program which require optimization.

    - mike

Children