1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-03 14:03:52 +00:00

Group caches together.

This commit is contained in:
Bartosz Taudul 2019-10-25 18:16:27 +02:00
parent 29c42cc8d7
commit c8e5489e99

View File

@ -199,7 +199,6 @@ private:
ThreadCompress localThreadCompress; ThreadCompress localThreadCompress;
ThreadCompress externalThreadCompress; ThreadCompress externalThreadCompress;
std::pair<uint64_t, ThreadData*> threadDataLast;
Vector<Vector<ZoneEvent*>> zoneChildren; Vector<Vector<ZoneEvent*>> zoneChildren;
Vector<Vector<GpuEvent*>> gpuChildren; Vector<Vector<GpuEvent*>> gpuChildren;
@ -212,12 +211,14 @@ private:
CrashEvent crashEvent; CrashEvent crashEvent;
flat_hash_map<uint64_t, ContextSwitch*, nohash<uint64_t>> ctxSwitch; flat_hash_map<uint64_t, ContextSwitch*, nohash<uint64_t>> ctxSwitch;
std::pair<uint64_t, ContextSwitch*> ctxSwitchLast;
CpuData cpuData[256]; CpuData cpuData[256];
int cpuDataCount = 0; int cpuDataCount = 0;
flat_hash_map<uint64_t, uint64_t, nohash<uint64_t>> tidToPid; flat_hash_map<uint64_t, uint64_t, nohash<uint64_t>> tidToPid;
flat_hash_map<uint64_t, CpuThreadData, nohash<uint64_t>> cpuThreadData; flat_hash_map<uint64_t, CpuThreadData, nohash<uint64_t>> cpuThreadData;
std::pair<uint64_t, ThreadData*> threadDataLast;
std::pair<uint64_t, ContextSwitch*> ctxSwitchLast;
}; };
struct MbpsBlock struct MbpsBlock