From 4a9138fc51eacbd4f9b69b76e8a5af119a74cb95 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 7 Nov 2019 23:05:13 +0100 Subject: [PATCH] Reduce FrameEvent size by 4 bytes. While it would be nice to store frame times on 48 bytes, it is not currently possible, as older traces have full 64 bit frame time stamps, which are only then offset to first frame start time. --- server/TracyEvent.hpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp index 79412874..0ffabd71 100644 --- a/server/TracyEvent.hpp +++ b/server/TracyEvent.hpp @@ -413,6 +413,16 @@ struct PlotItem enum { PlotItemSize = sizeof( PlotItem ) }; + +struct FrameEvent +{ + int64_t start; + int64_t end; + int32_t frameImage; +}; + +enum { FrameEventSize = sizeof( FrameEvent ) }; + #pragma pack() @@ -516,15 +526,6 @@ struct MemData PlotData* plot = nullptr; }; -struct FrameEvent -{ - int64_t start; - int64_t end; - int32_t frameImage; -}; - -enum { FrameEventSize = sizeof( FrameEvent ) }; - struct FrameData { uint64_t name;