mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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;
|
int dmul = ev.text.active ? 2 : 1;
|
||||||
|
|
||||||
|
const auto tid = GetZoneThread( ev );
|
||||||
auto& srcloc = m_worker.GetSourceLocation( ev.srcloc );
|
auto& srcloc = m_worker.GetSourceLocation( ev.srcloc );
|
||||||
|
|
||||||
const auto filename = m_worker.GetString( srcloc.file );
|
const auto filename = m_worker.GetString( srcloc.file );
|
||||||
@ -3433,6 +3434,9 @@ void View::ZoneTooltip( const ZoneEvent& ev )
|
|||||||
}
|
}
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Text( "%s:%i", filename, line );
|
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( "Execution time: %s", TimeToString( end - ev.start ) );
|
||||||
ImGui::Text( "Without profiling: %s", TimeToString( end - ev.start - m_worker.GetDelay() * dmul ) );
|
ImGui::Text( "Without profiling: %s", TimeToString( end - ev.start - m_worker.GetDelay() * dmul ) );
|
||||||
if( ev.cpu_start != -1 )
|
if( ev.cpu_start != -1 )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user