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

Precalculate draw lists for locks.

This commit is contained in:
Bartosz Taudul
2023-04-15 12:47:59 +02:00
parent 9b270c8e11
commit 7f301dfec0
3 changed files with 443 additions and 0 deletions
+25
View File
@@ -71,6 +71,31 @@ struct CpuCtxDraw
};
enum class LockState : uint8_t
{
Nothing,
HasLock, // green
HasBlockingLock, // yellow
WaitLock // red
};
struct LockDrawItem
{
Int48 t1;
LockState state;
uint32_t condensed;
short_ptr<LockEventPtr> ptr, next;
};
struct LockDraw
{
uint32_t id;
bool forceDraw;
uint8_t thread;
std::vector<LockDrawItem> data;
};
}
#endif