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

Store source location payloads.

No saving yet. No detection of duplicate entries.
This commit is contained in:
Bartosz Taudul
2017-11-05 21:24:50 +01:00
parent 4aa93f6285
commit c6a7bcb086
3 changed files with 45 additions and 14 deletions
+4 -3
View File
@@ -21,7 +21,8 @@ struct SourceLocation
uint64_t function; // ptr
uint64_t file; // ptr
uint32_t line;
uint32_t color;
uint32_t color : 31;
uint32_t stringsAllocated : 1;
};
enum { SourceLocationSize = sizeof( SourceLocation ) };
@@ -31,7 +32,7 @@ struct ZoneEvent
{
int64_t start;
int64_t end;
uint32_t srcloc;
int32_t srcloc;
int8_t cpu_start;
int8_t cpu_end;
@@ -52,7 +53,7 @@ struct LockEvent
};
int64_t time;
uint32_t srcloc;
int32_t srcloc;
uint64_t waitList;
uint16_t thread : 6;
uint16_t lockingThread : 6;