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 CCSv5.3. Trying to profile some code using C674x cycle accurate simulator. I have the clock enabled and also have activated profiling to do function level profiling.
The code being profiled has file reads/writes. Basically, it reads data from a file, does some processing and writes it back to another file.
At the end of the run, exported all the profiling data.
Did a comparison of the following
1. Cycles elapsed reported by the clock
2. Aggregate of all the function's exclusive count total
I was expecting both to be equal. But, they were off by almost a factor of 2 (clock count was 2x that of the aggregated function profile count).
Can somebody please explain the reason for the difference?
Thanks,
-raja.
Hi Raja,
In the aggregate of functions, the clock does not account for rts lib funcitons like memcpy or file operations. If you are using many rtslib funcitons, may be this is the cause for difference.
Thank you very much Radhesh.
I am guessing the file operations are the ones adding to the clock count. Is there some way to include the RTS lib functions also in the profile?
Cheers,
-raja.
It should be possible, but may not be straight forward. I mean you may need to build rts source with -g option (debug symbols) and use in your application, then Clock should catch rts functions.
Thank you Radhesh.
So, the most reliable way would be to read TSCL and do a delta to get the count which covers everything. Is that correct?
Cheers,
-raja.