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

Count GPU zones.

This commit is contained in:
Bartosz Taudul
2019-10-13 14:13:04 +02:00
parent c3870f8837
commit 5e1894dd79
2 changed files with 10 additions and 9 deletions
+6 -9
View File
@@ -154,11 +154,7 @@ private:
struct DataBlock
{
DataBlock()
: zonesCnt( 0 )
, baseTime( 0 )
, lastTime( 0 )
, frameOffset( 0 )
, threadDataLast( std::numeric_limits<uint64_t>::max(), nullptr )
: threadDataLast( std::numeric_limits<uint64_t>::max(), nullptr )
, ctxSwitchLast( std::numeric_limits<uint64_t>::max(), nullptr )
{}
@@ -170,10 +166,11 @@ private:
StringDiscovery<PlotData*> plots;
Vector<ThreadData*> threads;
MemData memory;
uint64_t zonesCnt;
int64_t baseTime;
int64_t lastTime;
uint64_t frameOffset;
uint64_t zonesCnt = 0;
uint64_t gpuCnt = 0;
int64_t baseTime = 0;
int64_t lastTime = 0;
uint64_t frameOffset = 0;
flat_hash_map<uint64_t, const char*, nohash<uint64_t>> strings;
Vector<const char*> stringData;