1
0
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:
Bartosz Taudul
2023-03-22 19:38:36 +01:00
parent 060bab357d
commit 88f0b9c754
3 changed files with 143 additions and 0 deletions
+33
View File
@@ -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