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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user