This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS320F28377D-EP:如何计算 CPU 使用率?

Guru**** 2560390 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1196276/tms320f28377d-ep-how-to-calculate-cpu-usage

器件型号:TMS320F28377D-EP

你(们)好

我仅使用28377D 的 CPU1。

我想计算 CPU1的用法。 进行编程。

我想知道是否可以通过以下方式计算它

a.通过在源代码重复语句中设置"break"来测量执行时间

b.通过在整个源代码上设置"中断"来测量执行时间

CPU 使用率=(a/b)* 100

如果还有其他方法、请告诉我

谢谢