Explorar o código

Print stats of CDPF usage

Ian Goldberg %!s(int64=2) %!d(string=hai) anos
pai
achega
face761595
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      mpcio.cpp

+ 4 - 0
mpcio.cpp

@@ -299,6 +299,10 @@ void MPCPeerIO::dump_precomp_stats(std::ostream &os)
                 os << " r" << int(depth) << ":" << cnt;
             }
         }
+        size_t ccnt = cdpfs[i].get_stats();
+        if (ccnt > 0) {
+            os << " c:" << ccnt;
+        }
     }
     os << "\n";
 }