1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Display per-GPU-event threads.

This commit is contained in:
Bartosz Taudul 2018-06-17 19:09:33 +02:00
parent bb0631585c
commit 6e1ab9ae7a

View File

@ -5592,6 +5592,8 @@ uint64_t View::GetZoneThread( const ZoneEvent& zone ) const
uint64_t View::GetZoneThread( const GpuEvent& zone ) const uint64_t View::GetZoneThread( const GpuEvent& zone ) const
{ {
if( zone.thread == 0 )
{
for( const auto& ctx : m_worker.GetGpuData() ) for( const auto& ctx : m_worker.GetGpuData() )
{ {
const Vector<GpuEvent*>* timeline = &ctx->timeline; const Vector<GpuEvent*>* timeline = &ctx->timeline;
@ -5607,6 +5609,11 @@ uint64_t View::GetZoneThread( const GpuEvent& zone ) const
} }
} }
return 0; return 0;
}
else
{
return m_worker.DecompressThread( zone.thread );
}
} }
const ZoneEvent* View::FindZoneAtTime( uint64_t thread, int64_t time ) const const ZoneEvent* View::FindZoneAtTime( uint64_t thread, int64_t time ) const