stack probe
This commit is contained in:
parent
c225146852
commit
9319798e52
1 changed files with 7 additions and 6 deletions
|
|
@ -578,10 +578,11 @@ fn stack_per_level() {
|
|||
(8.0, 16.0)
|
||||
}
|
||||
}
|
||||
let levels = 250;
|
||||
let tree = bind(&mut MemState::new(), &surface_of(chain(levels))).unwrap();
|
||||
let mut probe = Probe(None);
|
||||
layout(&tree, &pixels(800.0, 600.0, 1.0), &mut probe);
|
||||
let at_depth = probe.0.expect("the bottom text was measured");
|
||||
println!("LAYOUT_STACK_PROBE remaining {at_depth}");
|
||||
for levels in [8, 16, 32, 64] {
|
||||
let tree = bind(&mut MemState::new(), &surface_of(chain(levels))).unwrap();
|
||||
let mut probe = Probe(None);
|
||||
layout(&tree, &pixels(800.0, 600.0, 1.0), &mut probe);
|
||||
let left = probe.0.expect("the bottom text was measured");
|
||||
println!("LAYOUT_STACK_PROBE levels {levels} remaining {left}");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue