Skip to content

[TIME-TRAVEL] [FEAT] Add metrics for snapshot serialization latency #1001

@dotandev

Description

@dotandev

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)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions