mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Display numerical thread id in memory plot tooltip.
This commit is contained in:
parent
9329c761f6
commit
b190a15ef6
@ -2733,14 +2733,18 @@ void View::DrawPlotPoint( const ImVec2& wpos, float x, float y, int offset, uint
|
|||||||
}
|
}
|
||||||
TextFocused( "Duration:", TimeToString( ev->timeFree - ev->timeAlloc ) );
|
TextFocused( "Duration:", TimeToString( ev->timeFree - ev->timeAlloc ) );
|
||||||
}
|
}
|
||||||
|
uint64_t tid;
|
||||||
if( change > 0 )
|
if( change > 0 )
|
||||||
{
|
{
|
||||||
TextFocused( "Thread:", m_worker.GetThreadString( m_worker.DecompressThread( ev->threadAlloc ) ) );
|
tid = m_worker.DecompressThread( ev->threadAlloc );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TextFocused( "Thread:", m_worker.GetThreadString( m_worker.DecompressThread( ev->threadFree ) ) );
|
tid = m_worker.DecompressThread( ev->threadFree );
|
||||||
}
|
}
|
||||||
|
TextFocused( "Thread:", m_worker.GetThreadString( tid ) );
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextDisabled( "(0x%" PRIX64 ")", tid );
|
||||||
|
|
||||||
if( ImGui::IsMouseClicked( 0 ) )
|
if( ImGui::IsMouseClicked( 0 ) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user