Tool/software: Code Composer Studio
Hi,
in order to debug my FW on C5505 eZdsp, i need to evaluate the time duration of a specific function execution.
How can I do?
Thanks in Advance
Paolo
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.
Tool/software: Code Composer Studio
Hi,
in order to debug my FW on C5505 eZdsp, i need to evaluate the time duration of a specific function execution.
How can I do?
Thanks in Advance
Paolo
Hi Ki-Soo,
in order to measure the time duration of my function i proceeded in this way, that, if it is correct, seems to be simple:
- clock (in cpu cycles) enabled and shown.
- I put a break point in Debug mode before calling my function. When the execution break i annotate the clock cycles elapsed before calling the function
- I make a step over and reannotate the new clock cycles after calling the function.
- I make the difference (cycles_diff) : this should be the number of clock cycles 'consumed' by the functions
- I convert the clock cycles in seconds by making the proportional equality (cpu clock PLL 120 Mhz): 120,000,000 : 1 sec = cycles_diff : time_elapsed. This implies:
time_elapsed = (cycles_diff / 120,000,000) seconds.
In your opinion, in this correct?
Thank you so much
Paolo