By default it is disabled. You need to enabled it.
Run -> Clock -> Enable
Thanks
ki
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.
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 bench
t_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.
regards
Soumya
Pls 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
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,
On hardware, you can use the profile clock: https://www-a.ti.com/downloads/sds_support/CCE/Demos/Clock.htm
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 ....
-Studinstru
By default it is disabled. You need to enabled it.
Run -> Clock -> Enable
Thanks
ki
By default it is disabled. You need to enabled it.
Run -> Clock -> Enable
Thanks
ki
-----------------------------------
@ 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
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.
Thanks
ki
@ Ki,
If this is the solution then thanks.
I will try to find out something different to do profiling in CCSv5.
-Studinstru