From f58c96e4b3db79c0d4d15765eb9ed85fd70cf396 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 8 Feb 2020 13:10:41 +0100 Subject: [PATCH] Display trace file size in capture utility. --- capture/src/capture.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp index 264da52c..2719f03c 100644 --- a/capture/src/capture.cpp +++ b/capture/src/capture.cpp @@ -156,6 +156,9 @@ int main( int argc, char** argv ) { worker.Write( *f ); printf( " \033[32;1mdone!\033[0m\n" ); + f->Finish(); + const auto stats = f->GetCompressionStatistics(); + printf( "Trace size %s (%.2f%% ratio)\n", tracy::MemSizeToString( stats.second ), 100.f * stats.second / stats.first ); } else {