소스 검색

Print stats of CDPF usage

Ian Goldberg 2 년 전
부모
커밋
face761595
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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";
 }