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

Allow sending application information messages.

This commit is contained in:
Bartosz Taudul
2019-07-12 18:14:42 +02:00
parent cd018e88a4
commit 60d2384a6a
6 changed files with 52 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
namespace tracy
{
enum : uint32_t { ProtocolVersion = 10 };
enum : uint32_t { ProtocolVersion = 11 };
enum : uint32_t { BroadcastVersion = 0 };
using lz4sz_t = uint32_t;
+3 -1
View File
@@ -12,6 +12,7 @@ enum class QueueType : uint8_t
ZoneName,
Message,
MessageColor,
MessageAppInfo,
ZoneBeginAllocSrcLoc,
ZoneBeginAllocSrcLocCallstack,
CallstackMemory,
@@ -348,9 +349,9 @@ struct QueueItem
QueueSysTime sysTime;
};
};
#pragma pack()
enum { QueueItemSize = sizeof( QueueItem ) };
static const size_t QueueDataSize[] = {
@@ -358,6 +359,7 @@ static const size_t QueueDataSize[] = {
sizeof( QueueHeader ) + sizeof( QueueZoneText ), // zone name
sizeof( QueueHeader ) + sizeof( QueueMessage ),
sizeof( QueueHeader ) + sizeof( QueueMessageColor ),
sizeof( QueueHeader ) + sizeof( QueueMessage ), // app info
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ), // allocated source location
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ), // allocated source location, callstack
sizeof( QueueHeader ) + sizeof( QueueCallstackMemory ),