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.

CCS 2.2 profiler



My project is of  optimization a C code that include intrinsics instructions 
I use the CCS 2.2 and the C6416 DSK Board 


Can I do an automatic profile by the "profiler tools of CCS 2 " ? 
or How can I  do a manual profiling ?? 

Please Help  
Thank you, 

  • CCS 2.2 supports function profiling (which I think you are referring to as "automatic" profiling) and using the profile clock for manual profiling. Both features should be documented in the online help of CCS

    There is also an application note on profiling with CCS 2.2: http://focus.ti.com/lit/an/spra905/spra905.pdf

    Hope this helps,

    ki

  • hi 

    Thanks for answering M. Ki-Soo Lee

    I know this document , my problem is how to use the profiler tools , 

    Because  I tryed to use the profiler but I have no results 

    Perhaps that is caused by the complexity of my programme that is composed by 2 project combined 

    and the secondary contained the file that I want to do his profile

    Even the manual profiling I can't do it because when I put any breakpoint I have erreur  

     

    I just want to know if there is any  detailed manual to use this profiler 

    thanks,

    Best regards, 

  • Hi again Mr. 


    Tahnks a lot for all your help
    Now the profiler of the CCS  2.2 version is fonctionning, and as a result for all fonctions i have 

    so many parameters as output  "code size" , "Count" , "Incl. Total" , "Incl. Max" , "Incl Min" , "Incl Average" , "Excl. Total ", "Excl. Max" ,

    "Excl. Min" and "Excl. average" 

    Please how can I determine the nombre of cycle for each fonction by these parameters

     

    Looking forward to getting your suggestions.

    Best Regards

  • Hi Akram,

    Akram K said:

    so many parameters as output  "code size" , "Count" , "Incl. Total" , "Incl. Max" , "Incl Min" , "Incl Average" , "Excl. Total ", "Excl. Max" ,

    "Excl. Min" and "Excl. average" 

    Please how can I determine the nombre of cycle for each fonction by these parameters

    That information should be in the CCS help that comes with the product. In case it does not, here is a quick summary:

    Code Size: size (in bytes) of the function or range

    Count: number of times that function or range was executed

    Incl. Total: Inclusive cycle count total for that range (total cycle counts executing that function or range). This includes counts from an function calls made in that function/range

    Incl. Max: The highest cycle count recorded when executing that function or range. 

    Incl. Average: The average cycle count it took to execute a function

    Example: function foo() was executed 3 times and the first time it took 22 cycles, second time it took 29 cycles and the third time it took 23 cycles. T

    Count would be 3

    Incl. Total would be 74

    Incl. Max would be  29

    Incl. Average would be 25 (24.67 rounded to 25)

    All the ones with "Excl" stand for Exclusive cycle counts. They work the same as Inclusive except it excludes any counts from function calls made inside the function/range. So if foo() called a function bar() and foo() has an Incl. Total of 30 and bar has an Incl. Total of 10, the Excl. Total of foo() would be 20 cycles (30 - 10 = 20).

    Thanks

    ki

  • Thanks a lot M. Ki-Soo Lee
    Have nice day