Find hotspots with SWO Profile

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Find hotspots with SWO Profile

719 Views
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 Kudos
2 Replies

601 Views
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 Kudos

601 Views
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 Kudos