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

Store messages.

This commit is contained in:
Bartosz Taudul
2017-10-14 14:28:04 +02:00
parent 8c7b60fbe6
commit fa8030009f
5 changed files with 69 additions and 5 deletions
+1
View File
@@ -23,6 +23,7 @@ enum ServerQuery : uint8_t
ServerQueryCustomString,
ServerQuerySourceLocation,
ServerQueryPlotName,
ServerQueryMessage,
};
enum { WelcomeMessageProgramNameSize = 64 };
+2
View File
@@ -24,6 +24,7 @@ enum class QueueType : uint8_t
PlotData,
PlotName,
Message,
MessageData,
NUM_TYPES
};
@@ -184,6 +185,7 @@ static const size_t QueueDataSize[] = {
sizeof( QueueHeader ) + sizeof( QueuePlotData ),
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // plot name
sizeof( QueueHeader ) + sizeof( QueueMessage ),
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // message data
};
static_assert( QueueItemSize == 32, "Queue item size not 32 bytes" );