marimo icon indicating copy to clipboard operation
marimo copied to clipboard

Suggestions to help debugging slow cell cycles - show last run time

Open alefminus opened this issue 11 months ago • 1 comments

Description

Currently each cell shows it's run time, so for simple cases where the cell that is slow is obvious you can see by hovering.

But sometimes changing a variable (i.e. a dropdown value) results in a long refresh time that is not just a result of a single cell and it is hard to identify.

Suggested solution

I suggest that hover will show also the last execution time, and/or specifically why it was executed (update to cell X / user request directly).

Alternative

Another option is to use the "explore dependencies" view to also show the last run time. maybe color, or edges, i.e.: Cell A contains a dependency on a dropdown variable Dropdown updated -> A recomputed -> B recomputed -> C recomputed visible by edges from Dropdown cell -> A -> B -> C always show the last update chain.

Additional context

No response

alefminus avatar Mar 21 '24 07:03 alefminus

We have improved the dependency viewer to show a dag of the tree - we can add the execution time to this view and hopefully will help debug slow runs/bottlenecks

mscolnick avatar May 03 '24 16:05 mscolnick

Closing this issue as fixed by https://github.com/marimo-team/marimo/pull/3168

mscolnick avatar Feb 13 '25 22:02 mscolnick