mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Use precalculated zone group time.
This commit is contained in:
parent
cacbac8915
commit
59e0f3d490
@ -3774,8 +3774,6 @@ void View::DrawFindZone()
|
|||||||
memset( binTime.get(), 0, sizeof( int64_t ) * numBins );
|
memset( binTime.get(), 0, sizeof( int64_t ) * numBins );
|
||||||
memset( selBin.get(), 0, sizeof( int64_t ) * numBins );
|
memset( selBin.get(), 0, sizeof( int64_t ) * numBins );
|
||||||
|
|
||||||
int64_t selBinTime = 0;
|
|
||||||
|
|
||||||
int64_t selectionTime = 0;
|
int64_t selectionTime = 0;
|
||||||
if( m_findZone.highlight.active )
|
if( m_findZone.highlight.active )
|
||||||
{
|
{
|
||||||
@ -3799,7 +3797,6 @@ void View::DrawFindZone()
|
|||||||
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
||||||
{
|
{
|
||||||
if( cumulateTime ) selBin[bin] += timeSpan; else selBin[bin]++;
|
if( cumulateTime ) selBin[bin] += timeSpan; else selBin[bin]++;
|
||||||
selBinTime += timeSpan;
|
|
||||||
}
|
}
|
||||||
if( timeSpan >= s && timeSpan <= e ) selectionTime += timeSpan;
|
if( timeSpan >= s && timeSpan <= e ) selectionTime += timeSpan;
|
||||||
}
|
}
|
||||||
@ -3819,7 +3816,6 @@ void View::DrawFindZone()
|
|||||||
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
||||||
{
|
{
|
||||||
if( cumulateTime ) selBin[bin] += timeSpan; else selBin[bin]++;
|
if( cumulateTime ) selBin[bin] += timeSpan; else selBin[bin]++;
|
||||||
selBinTime += timeSpan;
|
|
||||||
}
|
}
|
||||||
if( timeSpan >= s && timeSpan <= e ) selectionTime += timeSpan;
|
if( timeSpan >= s && timeSpan <= e ) selectionTime += timeSpan;
|
||||||
}
|
}
|
||||||
@ -3880,7 +3876,6 @@ void View::DrawFindZone()
|
|||||||
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
||||||
{
|
{
|
||||||
if( cumulateTime ) selBin[bin] += timeSpan; else selBin[bin]++;
|
if( cumulateTime ) selBin[bin] += timeSpan; else selBin[bin]++;
|
||||||
selBinTime += timeSpan;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3899,7 +3894,6 @@ void View::DrawFindZone()
|
|||||||
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
||||||
{
|
{
|
||||||
if( cumulateTime ) selBin[bin] += timeSpan; else selBin[bin]++;
|
if( cumulateTime ) selBin[bin] += timeSpan; else selBin[bin]++;
|
||||||
selBinTime += timeSpan;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3993,7 +3987,7 @@ void View::DrawFindZone()
|
|||||||
}
|
}
|
||||||
if( selGroup != m_findZone.Unselected )
|
if( selGroup != m_findZone.Unselected )
|
||||||
{
|
{
|
||||||
TextFocused( "Zone group time:", TimeToString( selBinTime ) );
|
TextFocused( "Zone group time:", TimeToString( m_findZone.groups[selGroup].time ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user