mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Move towards proper data structures.
This commit is contained in:
+19
-1
@@ -32,11 +32,29 @@ enum { EventSize = sizeof( Event ) };
|
||||
|
||||
struct LockEvent
|
||||
{
|
||||
uint64_t srcloc;
|
||||
enum class Type : uint8_t
|
||||
{
|
||||
Wait,
|
||||
Obtain,
|
||||
Release
|
||||
};
|
||||
|
||||
int64_t time;
|
||||
uint64_t thread;
|
||||
Type type;
|
||||
};
|
||||
|
||||
enum { LockEventSize = sizeof( LockEvent ) };
|
||||
|
||||
|
||||
struct LockTimeline
|
||||
{
|
||||
uint64_t id;
|
||||
Vector<LockEvent*> timeline;
|
||||
};
|
||||
|
||||
enum { LockTimelineSize = sizeof( LockTimeline ) };
|
||||
|
||||
#pragma pack()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user