Display trace file size in capture utility.

This commit is contained in:
Bartosz Taudul 2020-02-08 13:10:41 +01:00
parent dd650e08ec
commit f58c96e4b3

View File

@ -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
{