Add -doc-stats options to print document statistics.
[SXSI/xpathcomp.git] / src / main.ml
index 48f2e46..8e0e130 100644 (file)
@@ -33,6 +33,7 @@ let mk_runtime run auto doc arg count print outfile =
 
 let main v query_string output =
   Tag.init (Tree.tag_operations v);
+  if !Options.docstats then Tree.stats v;
   let query =
     time ~msg:"Parsing query" XPath.parse query_string
   in