Part Number: LAUNCHXL-CC1352P
Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI C/C++ Compiler
Hello,
I am running a project which is build using makefiles generated using CMake and the TI compiler armcl. I've got it to build successfully and was able to run code on it successfully.
I would like to profile the code for CPU load. I have a number of threads and would like to find out the CPU utilization of each thread. I am not explicitly calling out any tasks such as the idle tasks in my code - just a main function that calls other threads which form the application.
I am not able to use the .cfg file as I do not know how to include it in my build, and I get errors if I do try. I would like to know if there is a way to profile the CPU utilization without using the sysbios.utils.load module, and using functions such as Load_calculateLoad, Load_getTaskLoad etc. Would it involve manually counting the time in each thread versus total time taken by the program? If so, If I have to have a global timer that updates the time spent in the relevant thread using Clock_getTicks(), how would I compute the total time spent in the program?
Warm regards,
Samyukta