Skip to content

Add Storage Access Pattern Analyzer #202

@Timi16

Description

@Timi16

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

  1. Branch: git checkout -b feature/storage-pattern-analyzer
  2. Update src/inspector/storage.rs to track per-key access counts
  3. Build access pattern report from collected data
  4. Identify and label caching opportunities
  5. Display sorted by frequency
  6. 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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions