Show zone thread in zone info popup.

This commit is contained in:
Bartosz Taudul 2018-03-19 16:08:50 +01:00
parent ad959549e4
commit 5a32cd7984

View File

@ -3402,6 +3402,7 @@ void View::ZoneTooltip( const ZoneEvent& ev )
{
int dmul = ev.text.active ? 2 : 1;
const auto tid = GetZoneThread( ev );
auto& srcloc = m_worker.GetSourceLocation( ev.srcloc );
const auto filename = m_worker.GetString( srcloc.file );
@ -3433,6 +3434,9 @@ void View::ZoneTooltip( const ZoneEvent& ev )
}
ImGui::Separator();
ImGui::Text( "%s:%i", filename, line );
ImGui::Text( "Thread: %s", m_worker.GetThreadString( tid ) );
ImGui::SameLine();
ImGui::TextDisabled( "(0x%" PRIX64 ")", tid );
ImGui::Text( "Execution time: %s", TimeToString( end - ev.start ) );
ImGui::Text( "Without profiling: %s", TimeToString( end - ev.start - m_worker.GetDelay() * dmul ) );
if( ev.cpu_start != -1 )