Skip to content

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

Merged
MaartenS11 merged 3 commits into
mainfrom
feat/tracing-interval-snapshots
Aug 19, 2026
Merged

Allow optionally taking full snapshots on a set interval in tracing mode#401
MaartenS11 merged 3 commits 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)

@MaartenS11
MaartenS11 force-pushed the feat/tracing-interval-snapshots branch 2 times, most recently from abb323c to 862f0b2 Compare August 19, 2026 12:35
@MaartenS11
MaartenS11 force-pushed the feat/tracing-interval-snapshots branch from 862f0b2 to bbeb4b3 Compare August 19, 2026 12:47
@MaartenS11
MaartenS11 merged commit 7ce85d6 into main Aug 19, 2026
19 checks passed
@MaartenS11
MaartenS11 deleted the feat/tracing-interval-snapshots branch August 19, 2026 14:33
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