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

Put source location zone data into a struct.

This commit is contained in:
Bartosz Taudul
2018-03-18 20:08:57 +01:00
parent f5b0f34827
commit 43c3fe25ba
2 changed files with 15 additions and 8 deletions
+8 -1
View File
@@ -32,6 +32,13 @@ struct nohash
class Worker
{
struct SourceLocationZones
{
SourceLocationZones() {}
Vector<ZoneEvent*> zones;
};
struct DataBlock
{
DataBlock() : zonesCnt( 0 ), lastTime( 0 ) {}
@@ -55,7 +62,7 @@ class Worker
flat_hash_map<SourceLocation*, uint32_t, SourceLocationHasher, SourceLocationComparator> sourceLocationPayloadMap;
Vector<uint64_t> sourceLocationExpand;
#ifndef TRACY_NO_STATISTICS
flat_hash_map<int32_t, Vector<ZoneEvent*>, nohash<int32_t>> sourceLocationZones;
flat_hash_map<int32_t, SourceLocationZones, nohash<int32_t>> sourceLocationZones;
#endif
std::map<uint32_t, LockMap> lockMap;