mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Calculate self min and max times of source location zones.
This commit is contained in:
parent
118fab1561
commit
42af2d14cc
@ -2350,6 +2350,8 @@ void Worker::ProcessZoneEnd( const QueueZoneEnd& ev )
|
||||
timeSpan -= childSpan;
|
||||
}
|
||||
}
|
||||
it->second.selfMin = std::min( it->second.selfMin, timeSpan );
|
||||
it->second.selfMax = std::max( it->second.selfMax, timeSpan );
|
||||
it->second.selfTotal += timeSpan;
|
||||
}
|
||||
#endif
|
||||
@ -3287,6 +3289,8 @@ void Worker::ReadTimelineUpdateStatistics( ZoneEvent* zone, uint16_t thread )
|
||||
timeSpan -= childSpan;
|
||||
}
|
||||
}
|
||||
it->second.selfMin = std::min( it->second.selfMin, timeSpan );
|
||||
it->second.selfMax = std::max( it->second.selfMax, timeSpan );
|
||||
it->second.selfTotal += timeSpan;
|
||||
}
|
||||
}
|
||||
|
@ -86,6 +86,8 @@ private:
|
||||
: min( std::numeric_limits<int64_t>::max() )
|
||||
, max( std::numeric_limits<int64_t>::min() )
|
||||
, total( 0 )
|
||||
, selfMin( std::numeric_limits<int64_t>::max() )
|
||||
, selfMax( std::numeric_limits<int64_t>::min() )
|
||||
, selfTotal( 0 )
|
||||
{}
|
||||
|
||||
@ -93,6 +95,8 @@ private:
|
||||
int64_t min;
|
||||
int64_t max;
|
||||
int64_t total;
|
||||
int64_t selfMin;
|
||||
int64_t selfMax;
|
||||
int64_t selfTotal;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user