Find hotspots with SWO Profile

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Find hotspots with SWO Profile

797 次查看
aballotti
Contributor I

Hi,

I wonder how to display instruction hit counts, so that hotspots in functions can be found.

Eventually could suffice to export raw PC Samples, so hit counting and sorting can be done with external tools,

can this be done in some way?

Regards

0 项奖励
回复
2 回复数

679 次查看
converse
Senior Contributor V

Details of how to do this can be found in the MCUXpresso IDE SWO Trace Guide, which is provided when you install MCUXpresso IDE.

0 项奖励
回复

679 次查看
aballotti
Contributor I

I re-checked the guide but I could not find how to extract PC samples.

With SWO Profile I can see hit counts on functions but not at instruction level, there is a coverage bitmap, but the information about hit count on each instuction is discarded.

With SWO Data I can add memory mapped addresses but it seems you can't trace the PC register.

0 项奖励
回复