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:
parent
bb0631585c
commit
6e1ab9ae7a
@ -5592,6 +5592,8 @@ uint64_t View::GetZoneThread( const ZoneEvent& zone ) const
|
||||
|
||||
uint64_t View::GetZoneThread( const GpuEvent& zone ) const
|
||||
{
|
||||
if( zone.thread == 0 )
|
||||
{
|
||||
for( const auto& ctx : m_worker.GetGpuData() )
|
||||
{
|
||||
const Vector<GpuEvent*>* timeline = &ctx->timeline;
|
||||
@ -5607,6 +5609,11 @@ uint64_t View::GetZoneThread( const GpuEvent& zone ) const
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_worker.DecompressThread( zone.thread );
|
||||
}
|
||||
}
|
||||
|
||||
const ZoneEvent* View::FindZoneAtTime( uint64_t thread, int64_t time ) const
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user