IRAM cache hit/miss statistics
Posted: Sun Jan 19, 2020 11:05 am
I collect task load statistics using uxTaskGetSystemState() and format in a 'top' style report. I am adding capability to the product one board at a time.
Recently I noticed a large jump in CPU utilisation from one of my activities. However the activity using the extra CPU cycles seems to change according to operating mode.
I am thinking that this may be cache related e.g. one or more activities need to load significant chunks of code from flash.
Is there a way to get in cache/out of cache run time statistics such that I may see the effect of my changes e.g. when I optimise some compilation units for code size but not others.
Recently I noticed a large jump in CPU utilisation from one of my activities. However the activity using the extra CPU cycles seems to change according to operating mode.
I am thinking that this may be cache related e.g. one or more activities need to load significant chunks of code from flash.
Is there a way to get in cache/out of cache run time statistics such that I may see the effect of my changes e.g. when I optimise some compilation units for code size but not others.