mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Provide default value for sourceLocationZonesReady.
This commit is contained in:
parent
56dce646cc
commit
c99537c402
@ -657,7 +657,6 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef TRACY_NO_STATISTICS
|
#ifndef TRACY_NO_STATISTICS
|
||||||
m_data.sourceLocationZonesReady = false;
|
|
||||||
m_data.sourceLocationZones.reserve( sle + sz );
|
m_data.sourceLocationZones.reserve( sle + sz );
|
||||||
|
|
||||||
f.Read( sz );
|
f.Read( sz );
|
||||||
|
@ -208,7 +208,7 @@ private:
|
|||||||
Vector<uint64_t> sourceLocationExpand;
|
Vector<uint64_t> sourceLocationExpand;
|
||||||
#ifndef TRACY_NO_STATISTICS
|
#ifndef TRACY_NO_STATISTICS
|
||||||
unordered_flat_map<int16_t, SourceLocationZones> sourceLocationZones;
|
unordered_flat_map<int16_t, SourceLocationZones> sourceLocationZones;
|
||||||
bool sourceLocationZonesReady;
|
bool sourceLocationZonesReady = false;
|
||||||
#else
|
#else
|
||||||
unordered_flat_map<int16_t, uint64_t> sourceLocationZonesCnt;
|
unordered_flat_map<int16_t, uint64_t> sourceLocationZonesCnt;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user