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

CPU-side GPU event transfer.

This commit is contained in:
Bartosz Taudul
2017-11-11 21:09:48 +01:00
parent b208df8829
commit 6fcdb924e8
5 changed files with 174 additions and 1 deletions
+19
View File
@@ -94,6 +94,22 @@ enum { LockEventSize = sizeof( LockEvent ) };
enum { MaxLockThreads = sizeof( LockEvent::waitList ) * 8 };
static_assert( std::numeric_limits<decltype(LockEvent::lockCount)>::max() >= MaxLockThreads, "Not enough space for lock count." );
struct GpuEvent
{
int64_t cpuStart;
int64_t cpuEnd;
int64_t gpuStart;
int64_t gpuEnd;
int32_t srcloc;
uint64_t name;
uint64_t thread;
Vector<GpuEvent*> child;
};
enum { GpuEventSize = sizeof( GpuEvent ) };
#pragma pack()
@@ -115,6 +131,9 @@ struct ThreadData
struct GpuCtxData
{
int64_t timeDiff;
Vector<GpuEvent*> timeline;
Vector<GpuEvent*> stack;
Vector<GpuEvent*> queue;
};
struct LockMap