1
0
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:
Bartosz Taudul
2017-10-04 18:17:31 +02:00
parent 4fad4be816
commit c2bccf7126
3 changed files with 28 additions and 10 deletions
+19 -1
View File
@@ -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()
}