HI,
I am using CCS V5.
I just want to do the profiling of my code that is nothing but want to check the timing information for the code that is how much time the function is taking for example in below example the time taken by add() function and total time by main function ……?
Is there any setting or inbuilt tool available in ccs v5 for profiling ….?
just Example :
#include<stdio.h>
Void main (void)
{
Int a=10, b=5 ;
Int sum;
Sum= add(a,b);
return;
}
int add(int a,int b)
return(a,b);
Hi,
You can use this code to get the number of cycles used by your application. It is very accurate.
UInt64 t_start;UInt64 t_stop;UInt64 t_overhead;
TSCL=0;t_start = _itoll( TSCH, TSCL );% code you want to bencht_stop = _itoll( TSCH, TSCL );t_overhead=t_stop-t_start;printf("Number of cycles = %d\n",t_overhead)
You need to include c6x.h .From the number of cycles you can easily find the time taken from the CPU clock speed.
regardsSoumyaPls verify the answer if it solves your problem.
Hello,
Other options available are:
If using simulator, you can use the CCS function profiler: http://processors.wiki.ti.com/index.php/Profiler
On hardware, you can use the profile clock: https://www-a.ti.com/downloads/sds_support/CCE/Demos/Clock.htm
Thanks
ki
-----------------------------------
Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.
Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.
Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide
Click here to track an issue. Enter your bug id in the "Find Record ID" box
Thank Soumys.
But I am using omap4430 processor .
So because of this i can't use the c6x.h header file in this.
Some more data I want to add :
Working platform : CCS v5
OS : Windows
Processor :OMAP4430 (ARM)
Please comment on this ...........
-Studinstru
@Ki,
By using this i come to know to use the Clock option .
But this Clock option is disabled in CCS V5.1.0.
What is the reason ?
Please tell me ....
By default it is disabled. You need to enabled it.
Run -> Clock -> Enable
@ Ki,
PFB the print screen of cock disabled :
All options for this clock is disabled and not able to access this.
I am using panda board as my target (Hardware) .
So whether this problem is because I am using 90 days free Evaluation version or some other else ???????
I am not getting the solution .
Studinstru - I see the same issue as you in CCSv5.1.0 but not in 5.1.1. Looks like it was a bug that was fixed in 5.1.1. I suggest moving to 5.1.1 or waiting for the 5.2.0 updating coming in about 2 weeks.
If this is the solution then thanks.
I will try to find out something different to do profiling in CCSv5.