Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Expose API for querying precise simulation state #5

Open
gardnervickers opened this issue Nov 11, 2019 · 0 comments
Open

Expose API for querying precise simulation state #5

gardnervickers opened this issue Nov 11, 2019 · 0 comments

Comments

@gardnervickers
Copy link
Member

It's desirable to have the ability to check the exact state a simulation is in. This could be exposed as an epoch which is advanced on each task poll. This would be useful for debugging and verifying fixes.

Users could conditionally add extra debug information based on the epoch. If there is a bug in the system, but logs are too verbose, users could choose to enable trace logging or whatever for a certain epoch range.

Bug fixes could be verified in an isolated way with this approach. Code could be conditionally ran based on the simulation epoch. This could be useful for situations where a particular program state is difficult to arrive at, and adding the fix changes simulation execution in such a way that the original bug is no longer exposed.

Currently, Simulation only allows applications to query the current time via Now::now() as a rough approximation to where a simulation is at in it's execution. While this may work for some cases, it's granular (1ms) and not actually tied to execution of the simulation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant