mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Preprocess thread context switch data.
This commit is contained in:
@@ -26,6 +26,39 @@ struct TimelineDraw
|
||||
int num;
|
||||
};
|
||||
|
||||
|
||||
enum class ContextSwitchDrawType : uint8_t
|
||||
{
|
||||
Waiting,
|
||||
FoldedOne,
|
||||
FoldedMulti,
|
||||
Running
|
||||
};
|
||||
|
||||
struct ContextSwitchDrawFolded
|
||||
{
|
||||
Int48 rend;
|
||||
int num;
|
||||
};
|
||||
|
||||
struct ContextSwitchDrawWaiting
|
||||
{
|
||||
short_ptr<ContextSwitchData> prev;
|
||||
Int24 waitStack;
|
||||
};
|
||||
|
||||
struct ContextSwitchDraw
|
||||
{
|
||||
ContextSwitchDrawType type;
|
||||
short_ptr<ContextSwitchData> ev;
|
||||
float minpx;
|
||||
union
|
||||
{
|
||||
ContextSwitchDrawFolded folded;
|
||||
ContextSwitchDrawWaiting waiting;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user