Fix flow tree debug printing.

Nested `debug!()` calls are no-ops, so change it now does a `println`. Also
moved to the `debug!()` calls out of the profiled block.
This commit is contained in:
Jack Moffitt 2013-07-22 10:43:02 -06:00
parent ddbe1c9c41
commit 94d83f96f1
2 changed files with 4 additions and 4 deletions

View file

@ -210,12 +210,12 @@ impl LayoutTask {
Err(*) => fail!(~"Root flow should always exist")
};
debug!("layout: constructed Flow tree");
debug!("%?", layout_root.dump());
layout_root
};
debug!("layout: constructed Flow tree");
debug!("", layout_root.dump());
// Perform the primary layout passes over the flow tree to compute the locations of all
// the boxes.
do profile(time::LayoutMainCategory, self.profiler_chan.clone()) {