Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debugger APIs for replay recording #14493

Merged
merged 4 commits into from
May 31, 2021
Merged

Conversation

unknownbrackets
Copy link
Collaborator

This exposes APIs to record and re-execute replay data.

A simple example is to send replay.begin, wait for a while (possibly listening for a certain keypress), and then send replay.flush to save the data. Then use replay.execute at the start. Also allows you to save/restore the RTC time.

In theory this can be used for TAS (and ties events to exact internal clock times), but as noted in #10888 I'm not necessarily pursuing TAS. This is useful for debugging and automated functional testing.

There's no integration with rewind or save states still.

Also, this fixes reading larger data packets - surprised I missed that. Might fix memory API issues for some if writing large chunks.

-[Unknown]

@hrydgard
Copy link
Owner

Looks simple and unintrusive. nice.

@hrydgard hrydgard merged commit 914b447 into hrydgard:master May 31, 2021
@unknownbrackets unknownbrackets deleted the replay branch May 31, 2021 16:06
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.

None yet

2 participants