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.

How to measure the cycles of a function multiple times automatically in the simulator?

Other Parts Discussed in Thread: CCSTUDIO

Hi,

I have a question: how to measure the cycles of a function multiple times automatically in the simulator?

More specific, I have the following C file main function and want to measure the cycles of the function xyz() inside the for loop 100 times and save the cycles somewhere. So I can analyze the cycles of the function in different scenario (different input data abc):

main()

{

for(i=0; i<100; i++)

{

   // the code to read input data from a file to the variable abc

    xyz(abc);

}

}

I know that if I set the breakpoint before the function xyz() and configure the profiles in the simulator for measuring cycles, I can measure the function cycles manually 100 times to reach my goal. However, my question is: is there any way to measure the cycles 100 times automatically, maybe by configuring simulator in certain way?

Thanks in advance.

Regards,

Xuedong