mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/daemon/common/commonNetwork.m


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/daemon/common/commonNetwork.ml
Date: Mon, 19 Sep 2005 06:09:07 -0400

Index: mldonkey/src/daemon/common/commonNetwork.ml
diff -u mldonkey/src/daemon/common/commonNetwork.ml:1.21 
mldonkey/src/daemon/common/commonNetwork.ml:1.22
--- mldonkey/src/daemon/common/commonNetwork.ml:1.21    Tue Sep  6 11:29:10 2005
+++ mldonkey/src/daemon/common/commonNetwork.ml Mon Sep 19 10:09:05 2005
@@ -196,6 +196,13 @@
 let network_commands = ref ([] : (string * string * CommonTypes.arg_kind * 
string) list)
 
 let commands_by_kind = Hashtbl.create 11
+
+let _ =
+     Heap.add_memstat "CommonNetwork" (fun level buf ->
+      Printf.bprintf buf "  networks_by_name: %d\n" (Hashtbl.length 
networks_by_name);
+      Printf.bprintf buf "  networks_by_num: %d\n" (Hashtbl.length 
networks_by_num);
+      Printf.bprintf buf "  commands_by_kind: %d\n" (Hashtbl.length 
commands_by_kind);
+     )
   
 let register_commands list = 
   List.iter (fun (s, n, f, h) ->




reply via email to

[Prev in Thread] Current Thread [Next in Thread]