我在使用code coverage时遇到了一些问题,我们连接着emulator运行,等结束之后,我们生成了pdat文件,最后解析pdat文件生成了prf文件,最后生成了csv文件,但是csv里面的frequency count出现了问题,例如只运行1次的代码,它显示运行次数为2863329256,并且好多这些数字,而且一些肯定被运行到的代码,显示的frequency count次数为0,请问我是哪一步出现了问题,该如何解决。
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.
我在使用code coverage时遇到了一些问题,我们连接着emulator运行,等结束之后,我们生成了pdat文件,最后解析pdat文件生成了prf文件,最后生成了csv文件,但是csv里面的frequency count出现了问题,例如只运行1次的代码,它显示运行次数为2863329256,并且好多这些数字,而且一些肯定被运行到的代码,显示的frequency count次数为0,请问我是哪一步出现了问题,该如何解决。
请尝试加个_TI_stop_pprof_collection 试试。
By default the collected data will be transfered via CIO to the host workstation when the program terminates.
If your application does not terminate naturally then it will be necessary to add a call a function call to complete the transfer of coverage data.
_TI_stop_pprof_collection();
extern void _TI_stop_pprof_collection(void);