mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Also display statistics time range if symbol view is open.
This commit is contained in:
parent
b9b39f1957
commit
6feb017cbe
@ -3232,7 +3232,7 @@ void View::DrawZones()
|
||||
draw->AddLine( ImVec2( wpos.x + px1, linepos.y ), ImVec2( wpos.x + px1, linepos.y + lineh ), m_findZone.range.hiMax ? 0x9988DD88 : 0x3388DD88, m_findZone.range.hiMax ? 2 : 1 );
|
||||
}
|
||||
|
||||
if( m_statRange.active && ( m_showStatistics || m_showRanges ) )
|
||||
if( m_statRange.active && ( m_showStatistics || m_showRanges || ( m_sourceViewFile && m_sourceView->IsSymbolView() ) ) )
|
||||
{
|
||||
const auto px0 = ( m_statRange.min - m_vd.zvStart ) * pxns;
|
||||
const auto px1 = std::max( px0 + std::max( 1.0, pxns * 0.5 ), ( m_statRange.max - m_vd.zvStart ) * pxns );
|
||||
|
Loading…
Reference in New Issue
Block a user