Skip to content

Tracing checkpoint policy#348

Draft
MaartenS11 wants to merge 1 commit intomainfrom
feat/tracing-mode
Draft

Tracing checkpoint policy#348
MaartenS11 wants to merge 1 commit intomainfrom
feat/tracing-mode

Conversation

@MaartenS11
Copy link
Member

This PR adds a configurable checkpoint policy used for tracing.

Additionally, all checkpoints being tracing or full checkpoints will also contain a "returns" element for primitives indicating the return value.

Users can choose when it sends data and which data is sent. For example, only send data after input primitives and only send the program counter as part of the "snapshot" data in the trace.

This is described in the following way:

6103010101

The first byte 61 says we want to switch snapshot policy, the second the mode, in this case 03 being tracing and then 01, says the primitive should return atleast one thing and in that case we will send one thing 01 being the program counter 01.

This option is configurable, this way you can choose when it sends data, for example: only after input primitives. Additionally, the data it sends can also be configured, for example: only send the program counter.
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