mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
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.
This commit is contained in:
parent
77a449a8f0
commit
4a9138fc51
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user