mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-27 21:48:22 +00:00
Remove graphical representation of instruction latencies.
This commit is contained in:
@@ -267,7 +267,6 @@ SourceView::SourceView()
|
||||
, m_showJumps( true )
|
||||
, m_locAddrIsProp( false )
|
||||
, m_cpuArch( CpuArchUnknown )
|
||||
, m_showLatency( false )
|
||||
{
|
||||
m_microArchOpMap.reserve( OpsNum );
|
||||
for( int i=0; i<OpsNum; i++ )
|
||||
@@ -2416,11 +2415,6 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
SmallCheckbox( ICON_FA_TRUCK_RAMP_BOX " Latency", &m_showLatency );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3997,25 +3991,6 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
|
||||
}
|
||||
}
|
||||
|
||||
if( m_showLatency && asmVar && asmVar->minlat >= 0 )
|
||||
{
|
||||
const auto pos = ImVec2( (int)ImGui::GetCursorScreenPos().x, (int)ImGui::GetCursorScreenPos().y );
|
||||
const auto ty = ImGui::GetTextLineHeight();
|
||||
|
||||
if( asmVar->minlat == 0 )
|
||||
{
|
||||
DrawLine( draw, pos + ImVec2( 0.5f, -0.5f ), pos + ImVec2( 0.5f, ty + 0.5f ), 0x660000FF );
|
||||
}
|
||||
else
|
||||
{
|
||||
draw->AddRectFilled( pos, pos + ImVec2( ty * asmVar->minlat + 1, ty + 1 ), 0x660000FF );
|
||||
}
|
||||
if( asmVar->minlat != asmVar->maxlat )
|
||||
{
|
||||
draw->AddRectFilled( pos + ImVec2( ty * asmVar->minlat + 1, 0 ), pos + ImVec2( ty * asmVar->maxlat + 1, ty + 1 ), 0x5500FFFF );
|
||||
}
|
||||
}
|
||||
|
||||
const bool inContext = IsInContext( worker, line.addr );
|
||||
int isSelected = asmIdx == m_asmSelected;
|
||||
if( !isSelected && line.regData[0] != 0 )
|
||||
|
||||
Reference in New Issue
Block a user