X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Fhcons.ml;h=5a7ad1438df90ea1c2d565e8457e466a61b3cf5e;hb=689b47b109dc54a78008f589f2c55f98672ab61d;hp=d49061d93b087cf08676384b326319a90dfa9d99;hpb=80358d87bec105b38a36c5d31d24a522edd48f40;p=SXSI%2Fxpathcomp.git diff --git a/src/hcons.ml b/src/hcons.ml index d49061d..5a7ad14 100644 --- a/src/hcons.ml +++ b/src/hcons.ml @@ -59,8 +59,9 @@ struct exception Found of t let stats () = - Printf.eprintf "Hconsing statistics"; let l = WH.fold (fun cell acc -> (Uid.to_int cell.id)::acc) pool [] in let l = List.sort compare l in - List.iter (fun id -> Printf.eprintf "%i\n" id) l + Logger.print Format.err_formatter "Hconsing statistics:@\n%a" + (fun ppf l -> + Pretty.pp_print_list ~sep:Format.pp_force_newline Format.pp_print_int ppf l) l end