mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 14:03:52 +00:00
Unify zone info window thread retrieval.
This commit is contained in:
parent
0f6ec65b65
commit
4d34ccc30c
@ -2522,17 +2522,18 @@ void View::DrawGpuInfoWindow()
|
|||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
|
const auto tid = GetZoneThread( ev );
|
||||||
const auto& srcloc = m_worker.GetSourceLocation( ev.srcloc );
|
const auto& srcloc = m_worker.GetSourceLocation( ev.srcloc );
|
||||||
ImGui::Text( "Zone name: %s", m_worker.GetString( srcloc.name ) );
|
ImGui::Text( "Zone name: %s", m_worker.GetString( srcloc.name ) );
|
||||||
ImGui::Text( "Function: %s", m_worker.GetString( srcloc.function ) );
|
ImGui::Text( "Function: %s", m_worker.GetString( srcloc.function ) );
|
||||||
ImGui::Text( "Location: %s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
|
ImGui::Text( "Location: %s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
|
||||||
ImGui::Text( "Thread: %s", m_worker.GetThreadString( m_gpuInfoWindowThread ) );
|
ImGui::Text( "Thread: %s", m_worker.GetThreadString( tid ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(id)" );
|
ImGui::TextDisabled( "(id)" );
|
||||||
if( ImGui::IsItemHovered() )
|
if( ImGui::IsItemHovered() )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
ImGui::Text( "0x%" PRIX64, m_gpuInfoWindowThread );
|
ImGui::Text( "0x%" PRIX64, tid );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user