Skip to content

Allow optionally taking full snapshots on a set interval in tracing mode - #401

Open
MaartenS11 wants to merge 1 commit into
mainfrom
feat/tracing-interval-snapshots
Open

Allow optionally taking full snapshots on a set interval in tracing mode#401
MaartenS11 wants to merge 1 commit into
mainfrom
feat/tracing-interval-snapshots

Conversation

@MaartenS11

@MaartenS11 MaartenS11 commented Aug 10, 2026

Copy link
Copy Markdown
Member

This allows hybrid snapshot/tracing schemes where you trace most of the execution but still take snapshots every now and then to avoid expensive re-execution.

Example 6103010101000f0000:

  61 03 01 01 01 00 0f 00 00                                                                                                                                                                                                                                                                                               
  │  │  │  │  │  └──────────── checkpointInterval (big-endian u32) = 0x000f0000 = 983 040                                                                                                                                                                                                                                  
  │  │  │  │  └─────────────── checkpoint_state[0] = pcState (0x01)                                                                                                                                                                                                                                                       
  │  │  │  └────────────────── checkpoint_state_size (LEB128) = 1                                                                                                                                                                                                                                                         
  │  │  └───────────────────── min_return_values (LEB128) = 1                                                                                                                                                                                                                                                           
  │  └──────────────────────── policy = 3 → checkpointing                                                                                                                                                                                                                                                               
  └─────────────────────────── interruptSetSnapshotPolicy (0x61)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant