IRAM cache hit/miss statistics

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

IRAM cache hit/miss statistics

Postby PeterR » 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.
& I also believe that IDF CAN should be fixed.

Who is online

Users browsing this forum: Baidu [Spider] and 83 guests