mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Cosmetics.
This commit is contained in:
parent
864d7e4e47
commit
e0872ce61b
@ -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++;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user