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

Add ability to send strings over network.

This commit is contained in:
Bartosz Taudul
2017-09-14 19:24:35 +02:00
parent f3ce055568
commit f61f50385d
3 changed files with 24 additions and 0 deletions
+2
View File
@@ -10,6 +10,7 @@ enum class QueueType : uint8_t
{
ZoneBegin,
ZoneEnd,
StringData,
NUM_TYPES
};
@@ -55,6 +56,7 @@ enum { QueueItemSize = sizeof( QueueItem ) };
static const size_t QueueDataSize[] = {
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ),
sizeof( QueueHeader ) + sizeof( QueueZoneEnd ),
sizeof( QueueHeader ),
};
static_assert( sizeof( QueueDataSize ) / sizeof( size_t ) == (uint8_t)QueueType::NUM_TYPES, "QueueDataSize mismatch" );