在进行dsp开发时,代码编写完成后,如果时间不满足要求,则必须对代码进行优化,以更加适应dsp环境 。而在进行优化时,我们可以先测算每个函数的运行时间,从中到耗时较多的函数进行优化。ccs的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即可看到结果。 20210311