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 ) if( start >= min && end <= max )
{ {
const auto zt = end - start; const auto zt = end - start;
if ( m_statAccumulationMode == AccumulationMode::SelfOnly) if( m_statAccumulationMode == AccumulationMode::SelfOnly )
{ {
total += zt - GetZoneChildTimeFast( z ); total += zt - GetZoneChildTimeFast( z );
cnt++; cnt++;
} }
else if ( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry(z) ) else if( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry( z ) )
{ {
total += zt; total += zt;
cnt++; cnt++;
@ -12823,12 +12823,12 @@ void View::DrawStatistics()
if( start >= min && end <= max ) if( start >= min && end <= max )
{ {
const auto zt = end - start; const auto zt = end - start;
if ( m_statAccumulationMode == AccumulationMode::SelfOnly) if( m_statAccumulationMode == AccumulationMode::SelfOnly )
{ {
total += zt - GetZoneChildTimeFast( z ); total += zt - GetZoneChildTimeFast( z );
cnt++; cnt++;
} }
else if ( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry(z) ) else if( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry( z ) )
{ {
total += zt; total += zt;
cnt++; 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() ); auto res = m_data.sourceLocationZones.emplace( key, SourceLocationZones() );
m_data.srclocZonesLast.first = key; m_data.srclocZonesLast.first = key;
m_data.srclocZonesLast.second = &res.first->second; m_data.srclocZonesLast.second = &res.first->second;
#else #else
auto res = m_data.sourceLocationZonesCnt.emplace( key, 0 ); auto res = m_data.sourceLocationZonesCnt.emplace( key, 0 );
m_data.srclocCntLast.first = key; m_data.srclocCntLast.first = key;