Description
We need to monitor how much the snapshotting feature slows down the simulator in production.
Requirements
- Measure duration of
take_snapshot and serialize_snapshot in Rust.
- Emit these metrics as a summary at the end of execution.
- Log a warning if snapshotting takes more than 30% of total runtime.
Acceptance Criteria
- Performance stats are visible in
--profile or verbose logs.
- Bottlenecks in the serialization loop are identified.
Estimated File Changes: 2 (simulator/src/host.rs, simulator/src/metrics.rs)
Description
We need to monitor how much the snapshotting feature slows down the simulator in production.
Requirements
take_snapshotandserialize_snapshotin Rust.Acceptance Criteria
--profileor verbose logs.Estimated File Changes: 2 (simulator/src/host.rs, simulator/src/metrics.rs)