mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Improve readability of callstack tooltips.
This commit is contained in:
parent
400ee1c752
commit
201a40fb04
@ -5904,14 +5904,16 @@ void View::CallstackTooltip( uint32_t idx )
|
|||||||
int fidx = 0;
|
int fidx = 0;
|
||||||
for( auto& entry : cs )
|
for( auto& entry : cs )
|
||||||
{
|
{
|
||||||
|
ImGui::TextDisabled( "%i.", fidx++ );
|
||||||
|
ImGui::SameLine();
|
||||||
auto frame = m_worker.GetCallstackFrame( entry );
|
auto frame = m_worker.GetCallstackFrame( entry );
|
||||||
if( !frame )
|
if( !frame )
|
||||||
{
|
{
|
||||||
ImGui::Text( "%i. 0x%" PRIX64, fidx++, entry );
|
ImGui::Text( "0x%" PRIX64, entry );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ImGui::Text( "%i. %s", fidx++, m_worker.GetString( frame->name ) );
|
ImGui::Text( "%s", m_worker.GetString( frame->name ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
|
Loading…
Reference in New Issue
Block a user