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.

ccs3.3 profiling

can I use profile for procedures outside the main() ?

I'm working with bios5 and I'm trying to mesaure procedures in a specific task and from some reason it doesn't work

BR

Talmor

  • Talmor,

    What device are you using?

    Thanks

    ki

  • talmor zilberman said:
    I'm trying to mesaure procedures in a specific task and from some reason it doesn't work

    Could you explain what you tried that is not working?

  • Sure,

    I set up a profil range on function X that runs outside the main  (this function runs from one of my project tasks).

    after running the program the profile counter is 0 - which means that function X wasn't executed

    If I'm running the program with no profile enable setting function X is executed as expected.

    My question is if the profile is working only inside the main() procedure or if there is a problem to run profile together with a bios? 

    BR

    Talmor

  • the CCS profiler works by setting a profile point at the start and end addresses of the range. When that start address is reached, it will start counting. And it will stop counting when the end address is reached. If the range is a function, it will set profile points and the entry and exit point of the function. It should not matter if the function is called from main() or not.

    How are you setting up your profile ranges? Are you using the CCS Profiler Setup and adding the whole function to profile? Or are you manually setting profile points?

    ki