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

Remove lock announce message.

This removes problem with static initialization order of mutices vs
tracy.

Lock source location is now transferred in lock wait message.
This commit is contained in:
Bartosz Taudul
2017-10-12 20:14:17 +02:00
parent c42106f4ff
commit 737671adbf
4 changed files with 16 additions and 29 deletions
+1 -9
View File
@@ -17,7 +17,6 @@ enum class QueueType : uint8_t
SourceLocation,
ZoneText,
ZoneName,
LockAnnounce,
LockWait,
LockObtain,
LockRelease,
@@ -73,17 +72,12 @@ struct QueueZoneName
uint64_t name; // ptr
};
struct QueueLockAnnounce
{
uint64_t id;
uint64_t srcloc; // ptr
};
struct QueueLockWait
{
uint64_t id;
int64_t time;
uint64_t thread;
uint64_t lckloc; // ptr
};
struct QueueLockObtain
@@ -128,7 +122,6 @@ struct QueueItem
QueueSourceLocation srcloc;
QueueZoneText zoneText;
QueueZoneName zoneName;
QueueLockAnnounce lockAnnounce;
QueueLockWait lockWait;
QueueLockObtain lockObtain;
QueueLockRelease lockRelease;
@@ -150,7 +143,6 @@ static const size_t QueueDataSize[] = {
sizeof( QueueHeader ) + sizeof( QueueSourceLocation ),
sizeof( QueueHeader ) + sizeof( QueueZoneText ),
sizeof( QueueHeader ) + sizeof( QueueZoneName ),
sizeof( QueueHeader ) + sizeof( QueueLockAnnounce ),
sizeof( QueueHeader ) + sizeof( QueueLockWait ),
sizeof( QueueHeader ) + sizeof( QueueLockObtain ),
sizeof( QueueHeader ) + sizeof( QueueLockRelease ),