mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-12 19:31:47 +00:00
Don't try to compress invalid thread.
This commit is contained in:
parent
010cf66e43
commit
25116a8059
@ -2613,7 +2613,14 @@ void Worker::ReadTimeline( FileRead& f, Vector<GpuEvent*>& vec, uint64_t size )
|
|||||||
f.Read( zone, sizeof( GpuEvent::cpuStart ) + sizeof( GpuEvent::cpuEnd ) + sizeof( GpuEvent::gpuStart ) + sizeof( GpuEvent::gpuEnd ) + sizeof( GpuEvent::srcloc ) + sizeof( GpuEvent::callstack ) );
|
f.Read( zone, sizeof( GpuEvent::cpuStart ) + sizeof( GpuEvent::cpuEnd ) + sizeof( GpuEvent::gpuStart ) + sizeof( GpuEvent::gpuEnd ) + sizeof( GpuEvent::srcloc ) + sizeof( GpuEvent::callstack ) );
|
||||||
uint64_t thread;
|
uint64_t thread;
|
||||||
f.Read( thread );
|
f.Read( thread );
|
||||||
zone->thread = CompressThread( thread );
|
if( thread == 0 )
|
||||||
|
{
|
||||||
|
zone->thread = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
zone->thread = CompressThread( thread );
|
||||||
|
}
|
||||||
ReadTimeline( f, zone );
|
ReadTimeline( f, zone );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user