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

Pack LockEvent data, saving one byte.

This commit is contained in:
Bartosz Taudul
2017-10-29 16:49:22 +01:00
parent 97880a89ae
commit 9524b6447e
2 changed files with 10 additions and 8 deletions
+3 -3
View File
@@ -43,10 +43,10 @@ struct LockEvent
int64_t time;
uint32_t srcloc;
uint64_t waitList;
uint8_t thread;
uint8_t lockingThread;
uint16_t thread : 6;
uint16_t lockingThread : 6;
uint16_t type : 2;
uint8_t lockCount;
Type type;
};
enum { LockEventSize = sizeof( LockEvent ) };