mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Select appropriate branch cost, if no retirement data.
This commit is contained in:
parent
88a153504d
commit
2fc64fceba
@ -1291,7 +1291,15 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
|||||||
int idx = 0;
|
int idx = 0;
|
||||||
for( auto& v : s_CostName )
|
for( auto& v : s_CostName )
|
||||||
{
|
{
|
||||||
if( ImGui::Selectable( v, idx == (int)m_cost ) ) m_cost = (CostType)idx;
|
if( ImGui::Selectable( v, idx == (int)m_cost ) )
|
||||||
|
{
|
||||||
|
m_cost = (CostType)idx;
|
||||||
|
|
||||||
|
if( m_cost == CostType::SlowBranches && !worker.HasHwBranchRetirement() )
|
||||||
|
{
|
||||||
|
m_cost = CostType::BranchMiss;
|
||||||
|
}
|
||||||
|
}
|
||||||
if( (CostType)idx == s_costSeparateAfter ) ImGui::Separator();
|
if( (CostType)idx == s_costSeparateAfter ) ImGui::Separator();
|
||||||
idx++;
|
idx++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user