Description
Reviewing lfs.h and the port for esp32 I'm using here I don't see any tracking counters exposed from littlefs.
It would be helpful for embedded use to be able to retrieve counters of page writes and page erases from littlefs to aid in the analysis of product lifespan.
The simple analysis is to look at the datarate from the application into littlefs, however this excludes overhead and other internal management of the filesystem that may add overhead. Having run-time counters (stored in ram, not persisted to the filesystem), for erases, block writes, and block reads, a block read count could let you examine if your application's workload was somehow causing more reads than anticipated, would provide the information necessary for an analysis.
Thoughts?