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

Support for setting zone names in lua.

This commit is contained in:
Bartosz Taudul
2017-11-11 17:56:41 +01:00
parent 59ec40c045
commit 81735aea2f
7 changed files with 61 additions and 12 deletions
+6 -3
View File
@@ -14,9 +14,10 @@ struct StringRef
{
enum Type { Ptr, Idx };
StringRef() {}
StringRef() : active( 0 ) {}
StringRef( Type t, uint64_t data )
: isidx( t == Idx )
, active( 1 )
{
if( isidx )
{
@@ -33,13 +34,15 @@ struct StringRef
uint64_t strptr;
uint64_t stridx;
};
bool isidx;
uint8_t isidx : 1;
uint8_t active : 1;
};
struct TextData
{
const char* userText;
uint64_t zoneName; // ptr
StringRef zoneName;
};
struct SourceLocation