Visualizing a Replayed Code Execution #92
cretz
started this conversation in
Show and tell
Replies: 2 comments 8 replies
-
So cool you are experimenting with this. That's the idea of #81, but I'm waiting for a few use cases (like yours) so I can generalize the API and the output. Do you mind sharing what do you think would be the ideal UI of the output? |
Beta Was this translation helpful? Give feedback.
6 replies
-
I created #93 for the animation jank for big files |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I work at https://temporal.io/ which does workflows as code, and as a side project I've been toying with how to visualize past runs. Temporal itself supports taking a replay and running against the previous code which is what I do at https://github.com/cretz/temporal-debug-go with a debugger to capture some tracing info.
I added a Code Hike based HTML exporter using a Scrollycoding MDX. It uses Go to generate a dynamic MDX that is rendered to a static site with a Next.js project (see Go code here that creates dynamic files underneath this dir).
See an example of the output here.
In this particular example, there is way less code than events, but other run visualizations have much more code and fewer events. But hopefully that example shows a neat use case for Code Hike. It unfortunately has some scrolling jank (I wish I could turn scrolling off, but this is still a better view than anything I could get with Spotlight).
I could see a more generic version of such a thing backed by a trace from https://github.com/rr-debugger/rr.
I eagerly look forward to #81 and/or any other visualization technique or improvements on the existing ones to show replayed code interspersed with contextual info (in my case, events from the server).
Beta Was this translation helpful? Give feedback.
All reactions