mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Make the local callstack more readable.
This commit is contained in:
parent
2a333b8449
commit
1419283a91
@ -3778,9 +3778,14 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
|
|||||||
{
|
{
|
||||||
ImGui::TextDisabled( "%i.", i+1 );
|
ImGui::TextDisabled( "%i.", i+1 );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Text( "%s", worker.GetString( frame->data[i].name ) );
|
const auto symName = worker.GetString( frame->data[i].name );
|
||||||
|
const auto normalized = view.GetShortenName() != ShortenName::Never ? ShortenZoneName( ShortenName::OnlyNormalize, symName ) : symName;
|
||||||
|
ImGui::Text( "%s", normalized );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
ImGui::PushFont( m_smallFont );
|
||||||
|
ImGui::AlignTextToFramePadding();
|
||||||
ImGui::TextDisabled( "%s:%i", worker.GetString( frame->data[i].file ), frame->data[i].line );
|
ImGui::TextDisabled( "%s:%i", worker.GetString( frame->data[i].file ), frame->data[i].line );
|
||||||
|
ImGui::PopFont();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
|
Loading…
Reference in New Issue
Block a user