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

Revert "Save one byte on ContextSwitchData."

Counting bits is hard, let's go shopping.
This commit is contained in:
Bartosz Taudul
2019-08-14 13:53:25 +02:00
parent 3996516fce
commit 0bb0c10e3c
3 changed files with 12 additions and 14 deletions
+2 -4
View File
@@ -222,13 +222,11 @@ enum { CrashEventSize = sizeof( CrashEvent ) };
struct ContextSwitchData
{
static uint8_t Reason( const ContextSwitchData& cs ) { return cs.data & 0xF; }
static uint8_t State( const ContextSwitchData& cs ) { return cs.data >> 4; }
int64_t start;
int64_t end;
uint8_t cpu;
uint8_t data;
int8_t reason;
int8_t state;
};
enum { ContextSwitchDataSize = sizeof( ContextSwitchData ) };