Skip to content

[TIME-TRAVEL] [FEAT] Add 'Resource Usage' metrics to snapshots #992

@dotandev

Description

@dotandev

Description

Developers need to see how much gas/budget each step 'stole'.

Requirements

  • Read Host::get_budget() before and after host calls.
  • Store the CPU and Memory consumption delta in the snapshot metadata.
  • Export these metrics in the snapshot JSON/Bincode.

Acceptance Criteria

  • Snapshots show precise resource usage per step.
  • Metrics align with the official Soroban budget limits.

Estimated File Changes: 2 (simulator/src/types.rs, simulator/src/host.rs)

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions