Log object count

This commit is contained in:
Patrick Walton 2019-01-03 14:08:06 -08:00
parent 7af83c9ddf
commit eb7d3b46ef
1 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,11 @@ fn main() {
// Build scene.
let usvg = Tree::from_file(&input_path, &UsvgOptions::default()).unwrap();
let scene = Scene::from_tree(usvg);
println!("Scene bounds: {:?} View box: {:?}", scene.bounds, scene.view_box);
println!("Scene bounds: {:?} View box: {:?} Object count: {}",
scene.bounds,
scene.view_box,
scene.objects.len());
//println!("{:#?}", scene.objects[0]);
let start_time = Instant::now();