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

Store context switches.

This commit is contained in:
Bartosz Taudul
2019-08-13 00:13:50 +02:00
parent 90d26cb1b6
commit 419f74280d
3 changed files with 61 additions and 0 deletions
+17
View File
@@ -219,6 +219,18 @@ struct CrashEvent
enum { CrashEventSize = sizeof( CrashEvent ) };
struct ContextSwitchData
{
int64_t start;
int64_t end;
uint8_t cpu;
int8_t reason;
int8_t state;
};
enum { ContextSwitchDataSize = sizeof( ContextSwitchData ) };
#pragma pack()
@@ -364,6 +376,11 @@ struct FrameImage
uint8_t flip;
};
struct ContextSwitch
{
Vector<ContextSwitchData> v;
};
}
#endif