mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Show zone thread in zone info popup.
This commit is contained in:
parent
ad959549e4
commit
5a32cd7984
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user