From eb7d3b46ef9315e36fcc1b627f7235e8055ad682 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 3 Jan 2019 14:08:06 -0800 Subject: [PATCH] Log object count --- utils/tile-svg/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/tile-svg/src/main.rs b/utils/tile-svg/src/main.rs index fb52da3a..2dce5a9d 100644 --- a/utils/tile-svg/src/main.rs +++ b/utils/tile-svg/src/main.rs @@ -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();