Is there a simple way to time how long it takes to execute a function? I'm using ccs6.
I don't want to have to set up timers / blink leds, etc.
Thanks
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.
Is there a simple way to time how long it takes to execute a function? I'm using ccs6.
I don't want to have to set up timers / blink leds, etc.
Thanks
Hi David,
The profiling options available in CCS vary widely by device, emulator, board layout, kernel, etc.
Check out this training module on profiling. It provides an overview on all the ways to do profiling with pros/cons and which environments support it:
http://processors.wiki.ti.com/index.php/CCS_Modules_Library#Profiling
Thanks
ki
Hi ki,
I'll check out profiling in CCS6. At least at this moment, I get an internal sever error when I try to open the ccs6 profiling power point.
Also, I went to http://processors.wiki.ti.com/index.php/Profiler and tried to open the FAQ link to see if my device is supportd (TMS570LS0332), but the page is empty.
http://processors.wiki.ti.com/index.php/Q:_What_targets_support_CCS_function_profiling.3F
Thanks for your help.
David
David Sabol said:At least at this moment, I get an internal sever error when I try to open the ccs6 profiling power point.
I just tried the link now and it works. Maybe it was just a temporary server issue
David Sabol said:Also, I went to http://processors.wiki.ti.com/index.php/Profiler and tried to open the FAQ link to see if my device is supportd (TMS570LS0332), but the page is empty.
http://processors.wiki.ti.com/index.php/Q:_What_targets_support_CCS_function_profiling.3F
Try this one:
Ki-Soo Lee said:I just tried the link now and it works. Maybe it was just a temporary server issue
Nope, it is still going on. It only works if you are on the TI internal network which doesn't help any of our customers.
We are looking into this. In the meantime, I zipped and attached the powerpoint here
Thanks for the help.
I'm running on the TMS570LS0332 which is runs on ARM Cortex R-4, so it looks like I can't use the function profiler, which is too bad.
I did set it up to count the profile clock. I set a breakpoint at the beginning of a function and at the end of the function. When it hits the first breakpoint I reset the clock and then ran to the second breakpoint. It gave 2,130 execution cycles.
I converted this to ms by dividing it by my system clock frequency (82 MHz) and get 0.026 ms, which doesn't seem right as I am doing a lot of external data sampling.
Is that the correct clock to use to convert the cycles to time?
David Sabol said:Is that the correct clock to use to convert the cycles to time?
The formula is documented here:
http://processors.wiki.ti.com/index.php/Profile_clock_in_CCS#Convert_Cycles_to_actual_time
Looks like your calculations are correct. As for if the value seems accurate, I can't really comment on that...