1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Initialize SourceLocationZones in-place.

This commit is contained in:
Bartosz Taudul 2019-03-14 01:15:19 +01:00
parent d3fdd6b1d1
commit f57cac9042

View File

@ -82,22 +82,13 @@ public:
private:
struct SourceLocationZones
{
SourceLocationZones()
: 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 )
{}
Vector<ZoneThreadData> zones;
int64_t min;
int64_t max;
int64_t total;
int64_t selfMin;
int64_t selfMax;
int64_t selfTotal;
int64_t min = std::numeric_limits<int64_t>::max();
int64_t max = std::numeric_limits<int64_t>::min();
int64_t total = 0;
int64_t selfMin = std::numeric_limits<int64_t>::max();
int64_t selfMax = std::numeric_limits<int64_t>::min();
int64_t selfTotal = 0;
};
struct CallstackFrameIdHash