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)
Description
Developers need to see how much gas/budget each step 'stole'.
Requirements
Host::get_budget()before and after host calls.CPUandMemoryconsumption delta in the snapshot metadata.Acceptance Criteria
Estimated File Changes: 2 (simulator/src/types.rs, simulator/src/host.rs)