1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Add zone validation queue item.

This commit is contained in:
Bartosz Taudul 2019-01-14 22:16:14 +01:00
parent 1a8518dcc2
commit a2fd09d938
2 changed files with 10 additions and 1 deletions

View File

@ -9,7 +9,7 @@
namespace tracy
{
enum : uint32_t { ProtocolVersion = 1 };
enum : uint32_t { ProtocolVersion = 2 };
using lz4sz_t = uint32_t;

View File

@ -21,6 +21,7 @@ enum class QueueType : uint8_t
ZoneBegin,
ZoneBeginCallstack,
ZoneEnd,
ZoneValidation,
FrameMarkMsg,
FrameMarkMsgStart,
FrameMarkMsgEnd,
@ -73,6 +74,12 @@ struct QueueZoneEnd
uint32_t cpu;
};
struct QueueZoneValidation
{
uint64_t thread;
uint32_t id;
};
struct QueueStringTransfer
{
uint64_t ptr;
@ -268,6 +275,7 @@ struct QueueItem
{
QueueZoneBegin zoneBegin;
QueueZoneEnd zoneEnd;
QueueZoneValidation zoneValidation;
QueueStringTransfer stringTransfer;
QueueFrameMark frameMark;
QueueSourceLocation srcloc;
@ -312,6 +320,7 @@ static const size_t QueueDataSize[] = {
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ),
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ), // callstack
sizeof( QueueHeader ) + sizeof( QueueZoneEnd ),
sizeof( QueueHeader ) + sizeof( QueueZoneValidation ),
sizeof( QueueHeader ) + sizeof( QueueFrameMark ), // continuous frames
sizeof( QueueHeader ) + sizeof( QueueFrameMark ), // start
sizeof( QueueHeader ) + sizeof( QueueFrameMark ), // end