mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Display trace file size in capture utility.
This commit is contained in:
parent
dd650e08ec
commit
f58c96e4b3
@ -156,6 +156,9 @@ int main( int argc, char** argv )
|
|||||||
{
|
{
|
||||||
worker.Write( *f );
|
worker.Write( *f );
|
||||||
printf( " \033[32;1mdone!\033[0m\n" );
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user