-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
Description
Description
Analyze storage access patterns during execution and report which keys are read most frequently, which are write-heavy, which are read but never written, and suggest caching opportunities.
Requirements
- Track every storage read and write with counts
- Identify hot keys (read more than 5 times)
- Flag keys read repeatedly with no writes (caching opportunity)
- Display as a sorted frequency table after execution
- Include in JSON output
Suggested Execution
- Branch:
git checkout -b feature/storage-pattern-analyzer - Update
src/inspector/storage.rsto track per-key access counts - Build access pattern report from collected data
- Identify and label caching opportunities
- Display sorted by frequency
- Commit:
feat: add storage access pattern analyzer
Acceptance Criteria
- All reads and writes tracked per key
- Hot keys (5+ reads) identified and labeled
- Caching suggestions shown for repeated reads
- Results sorted by frequency
- Tests with access-heavy test contracts
Reactions are currently unavailable