mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Don't compress thread twice, if it's the same.
This commit is contained in:
parent
fdaebc2bd8
commit
868fbace5a
@ -524,11 +524,17 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
|||||||
f.Read( &mem->size, sizeof( mem->size ) );
|
f.Read( &mem->size, sizeof( mem->size ) );
|
||||||
f.Read( &mem->timeAlloc, sizeof( mem->timeAlloc ) );
|
f.Read( &mem->timeAlloc, sizeof( mem->timeAlloc ) );
|
||||||
f.Read( &mem->timeFree, sizeof( mem->timeFree ) );
|
f.Read( &mem->timeFree, sizeof( mem->timeFree ) );
|
||||||
uint64_t t;
|
uint64_t t[2];
|
||||||
f.Read( &t, sizeof( t ) );
|
f.Read( t, sizeof( t ) );
|
||||||
mem->threadAlloc = CompressThread( t );
|
mem->threadAlloc = CompressThread( t[0] );
|
||||||
f.Read( &t, sizeof( t ) );
|
if( t[0] == t[1] )
|
||||||
mem->threadFree = CompressThread( t );
|
{
|
||||||
|
mem->threadFree = mem->threadAlloc;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mem->threadFree = CompressThread( t[1] );
|
||||||
|
}
|
||||||
|
|
||||||
if( mem->timeFree < 0 )
|
if( mem->timeFree < 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user