mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +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;
|
||||
for( auto& entry : cs )
|
||||
{
|
||||
ImGui::TextDisabled( "%i.", fidx++ );
|
||||
ImGui::SameLine();
|
||||
auto frame = m_worker.GetCallstackFrame( entry );
|
||||
if( !frame )
|
||||
{
|
||||
ImGui::Text( "%i. 0x%" PRIX64, fidx++, entry );
|
||||
ImGui::Text( "0x%" PRIX64, entry );
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::Text( "%i. %s", fidx++, m_worker.GetString( frame->name ) );
|
||||
ImGui::Text( "%s", m_worker.GetString( frame->name ) );
|
||||
}
|
||||
}
|
||||
ImGui::EndTooltip();
|
||||
|
Loading…
Reference in New Issue
Block a user