DioxusLabs / dioxus

Fullstack app framework for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
20.31k stars 780 forks source link

Add tracing to the virtualdom for devtools #1161

Closed jkelleyrtp closed 1 month ago

jkelleyrtp commented 1 year ago

Specific Demand

It'd be great to get a timeline view of events in the virtualdom and know which async tasks and component renders are taking a log time.

Implement Suggestion

Tracing + a custom subscriber seems like the ideal solution here. Specifically, we can enter spans and hop around async frames with little hassle.

A future devtool would be able to leverage a dedicated subscriber and show the logging over time.

jkelleyrtp commented 1 month ago

this really leads us into a visualizer/flamegraph/tracing system for the entire dom. there's a decent bit of tracing in now thanks to many different PRs, but none yet that satisfy the long term goal (which is tracked elsewhere)