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.

C28345程序运行时间

大家好!我现在需要计算程序在C28345上的运行时间,用的CCS 5的开发环境,请问如何进行计算?网上查找的CCS 3.3的方法是使用Toggle profile point和enable clock,view clock,在CCS 5下没有找到相应的工具。

  • shen liu,

    在CCS V5 debug模式下,菜单run->clock先后选择enable和show,能够通过单步运行查看每一行的执行时间,单位是机器周期,显示在CCS界面的最下方。

    另外,菜单tool->profile可以测算每个函数的执行时间,具体操作如下:

           1、在菜单栏的Tools->profile-> Setup Profile Data Collection ;在出来的Profile Setup 中选择新建,然后新建一个Configuration ,再在右边的Activities 中勾上Profile alll Function for  Total Cycles;

           2、然后在菜单栏选择Target ->Debug Active Project; 最后在运行。

           3. Tools->profile-> view function profile results即可看到结果。