-
Notifications
You must be signed in to change notification settings - Fork 25
Add tracing tool to visualize program execution #56
Comments
@galsasson there are several things i like about this. Timeline I am heavily looking at the developer tools in my browser and envy that we don't have something similar to the Timeline feature (inspect execution over time) in Processing. For us a "frame" really would be one draw() call and being able to see what has been called and how long it took would be very convenient for finding slow code ("don't load images from disk in draw()" problem beginners have). Another aspect could be to be able to inspect values over time and see them develop. I envision this to be similar to an oscilloscope. Being able to scrub on that timeline or even just revert values to a specific point time would be very interesting. Tracing A visual call graph might not be such a bad idea and would help both beginners (understand) and experienced users (documentation). I'm not sure how a heatmap would help, would it be "time spent" or "how often called" based? The sing-along jumping red dot seems a little too much like a gimmick to me. But maybe that is just me ... or the image of it. |
Just found out about the Timeline in chrome, thanks @fjenett! I like the draw() call as a frame, I think it makes a lot of sense in debugging slow code. The oscilloscope view for values over time is exactly what I was imagining. Regarding the heatmap: What if we'll let the user the ability to add "tracepoints" to the code (in addition and in parallel to breakpoints). At every tracepoint, a timestamp and all (or some) of the values in the stack will be saved. |
+1 for the heatmap & tracepoints idea! Sounds neat! |
Gal wrote
The text was updated successfully, but these errors were encountered: