From 4f370c060018b59c061063d630ce84e26b2bc28a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 8 Dec 2016 17:34:26 -0400 Subject: profiling --- doc/todo/tor.mdwn | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc') diff --git a/doc/todo/tor.mdwn b/doc/todo/tor.mdwn index ca3e8f19a..3a6de57a5 100644 --- a/doc/todo/tor.mdwn +++ b/doc/todo/tor.mdwn @@ -11,6 +11,18 @@ Current todo list: That could just be buffering.) (copy --from peer does not leak on either end; the remotedaemon uses 34 mb and the receiver 44 mb.) + + Profiling results: Leak is in hGetMetered, or perhaps in + the consumer of the data it reads. Graph shows `ARR_WORDS` is + the type; that must be a bytestring. + +
                                                                                                                   individual      inherited
+COST CENTRE                                               MODULE                               no.      entries  %time %alloc   %time %alloc
+                     tryNonAsync                          Utility.Exception                    3241          0    0.0    0.1    49.3   65.8
+                      receiveExactly                      P2P.IO                               3429          0    0.0    0.0    49.3   65.7
+                       hGetMetered                        Utility.Metered                      3430          0   49.1   65.6    49.3   65.7
+
+ * When a transfer can't be done because another transfer of the same object is already in progress, the message about this is output by the remotedaemon --debug, but not forwarded to the peer, which shows -- cgit v1.2.3