debugging: add some more debug tooling
This commit is contained in:
1 parent
1ea42799c0
commit
cbd471fa46
4 files changed
+44
-17
No files matched your search
@@ -462,14 +462,27 @@ impl VirtualDom {
|
||||
self.dirty_scopes
|
||||
.retain(|id| scopes.get_scope(*id).is_some());
|
||||
|
||||
log::debug!("dirty_scopes: {:?}", self.dirty_scopes);
|
||||
|
||||
for id in &self.dirty_scopes {
|
||||
let scope = scopes.get_scope(*id).unwrap();
|
||||
|
||||
log::debug!("dirty scope: {:?} with height {:?}", id, scope.height);
|
||||
}
|
||||
|
||||
self.dirty_scopes.sort_by(|a, b| {
|
||||
let h1 = scopes.get_scope(*a).unwrap().height;
|
||||
let h2 = scopes.get_scope(*b).unwrap().height;
|
||||
h1.cmp(&h2).reverse()
|
||||
});
|
||||
|
||||
log::debug!("dirty_scopes: {:?}", self.dirty_scopes);
|
||||
|
||||
if let Some(scopeid) = self.dirty_scopes.pop() {
|
||||
log::debug!("diffing scope {:?}", scopeid);
|
||||
if !ran_scopes.contains(&scopeid) {
|
||||
log::debug!("running scope scope {:?}", scopeid);
|
||||
|
||||
ran_scopes.insert(scopeid);
|
||||
|
||||
self.scopes.run_scope(scopeid);
|
||||
|
||||
Reference in new issue
Block a user