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

Send sampled call stacks.

This commit is contained in:
Bartosz Taudul
2020-02-22 13:42:09 +01:00
parent f186540c4f
commit 9e9c7db5b1
3 changed files with 37 additions and 1 deletions
+10
View File
@@ -20,6 +20,7 @@ enum class QueueType : uint8_t
CallstackMemory,
Callstack,
CallstackAlloc,
CallstackSample,
FrameImage,
ZoneBegin,
ZoneBeginCallstack,
@@ -290,6 +291,13 @@ struct QueueCallstackAlloc
uint64_t nativePtr;
};
struct QueueCallstackSample
{
int64_t time;
uint64_t thread;
uint64_t ptr;
};
struct QueueCallstackFrameSize
{
uint64_t ptr;
@@ -406,6 +414,7 @@ struct QueueItem
QueueCallstackMemory callstackMemory;
QueueCallstack callstack;
QueueCallstackAlloc callstackAlloc;
QueueCallstackSample callstackSample;
QueueCallstackFrameSize callstackFrameSize;
QueueCallstackFrame callstackFrame;
QueueCrashReport crashReport;
@@ -436,6 +445,7 @@ static constexpr size_t QueueDataSize[] = {
sizeof( QueueHeader ) + sizeof( QueueCallstackMemory ),
sizeof( QueueHeader ) + sizeof( QueueCallstack ),
sizeof( QueueHeader ) + sizeof( QueueCallstackAlloc ),
sizeof( QueueHeader ) + sizeof( QueueCallstackSample ),
sizeof( QueueHeader ) + sizeof( QueueFrameImage ),
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ),
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ), // callstack