mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Limit sample statistics frame name tooltip to frame name.
This commit is contained in:
parent
27165d12a6
commit
655bcd40fb
@ -325,7 +325,9 @@ void View::DrawSamplesStatistics( Vector<SymList>& data, int64_t timeRange, Accu
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, name );
|
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, name );
|
||||||
clicked = ImGui::Selectable( normalized, m_sampleParents.withInlines && m_sampleParents.symAddr == v.symAddr, ImGuiSelectableFlags_SpanAllColumns );
|
clicked = ImGui::Selectable( "", m_sampleParents.withInlines && m_sampleParents.symAddr == v.symAddr, ImGuiSelectableFlags_SpanAllColumns );
|
||||||
|
ImGui::SameLine( 0, 0 );
|
||||||
|
ImGui::TextUnformatted( normalized );
|
||||||
TooltipNormalizedName( name, normalized );
|
TooltipNormalizedName( name, normalized );
|
||||||
}
|
}
|
||||||
if( clicked ) ShowSampleParents( v.symAddr, !m_statSeparateInlines );
|
if( clicked ) ShowSampleParents( v.symAddr, !m_statSeparateInlines );
|
||||||
@ -533,7 +535,9 @@ void View::DrawSamplesStatistics( Vector<SymList>& data, int64_t timeRange, Accu
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, sn );
|
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, sn );
|
||||||
clicked = ImGui::Selectable( normalized, !m_sampleParents.withInlines && m_sampleParents.symAddr == iv.symAddr, ImGuiSelectableFlags_SpanAllColumns );
|
clicked = ImGui::Selectable( "", !m_sampleParents.withInlines && m_sampleParents.symAddr == iv.symAddr, ImGuiSelectableFlags_SpanAllColumns );
|
||||||
|
ImGui::SameLine( 0, 0 );
|
||||||
|
ImGui::TextUnformatted( normalized );
|
||||||
TooltipNormalizedName( sn, normalized );
|
TooltipNormalizedName( sn, normalized );
|
||||||
}
|
}
|
||||||
if( clicked ) ShowSampleParents( iv.symAddr, false );
|
if( clicked ) ShowSampleParents( iv.symAddr, false );
|
||||||
|
Loading…
Reference in New Issue
Block a user