Cosmetics.

This commit is contained in:
Bartosz Taudul 2021-11-14 14:26:34 +01:00
parent 864d7e4e47
commit e0872ce61b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 4 additions and 5 deletions

View File

@ -12776,12 +12776,12 @@ void View::DrawStatistics()
if( start >= min && end <= max )
{
const auto zt = end - start;
if ( m_statAccumulationMode == AccumulationMode::SelfOnly)
if( m_statAccumulationMode == AccumulationMode::SelfOnly )
{
total += zt - GetZoneChildTimeFast( z );
cnt++;
}
else if ( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry(z) )
else if( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry( z ) )
{
total += zt;
cnt++;
@ -12823,12 +12823,12 @@ void View::DrawStatistics()
if( start >= min && end <= max )
{
const auto zt = end - start;
if ( m_statAccumulationMode == AccumulationMode::SelfOnly)
if( m_statAccumulationMode == AccumulationMode::SelfOnly )
{
total += zt - GetZoneChildTimeFast( z );
cnt++;
}
else if ( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry(z) )
else if( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry( z ) )
{
total += zt;
cnt++;

View File

@ -3934,7 +3934,6 @@ void Worker::AddSourceLocationPayload( uint64_t ptr, const char* data, size_t sz
auto res = m_data.sourceLocationZones.emplace( key, SourceLocationZones() );
m_data.srclocZonesLast.first = key;
m_data.srclocZonesLast.second = &res.first->second;
#else
auto res = m_data.sourceLocationZonesCnt.emplace( key, 0 );
m_data.srclocCntLast.first = key;