mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
General solution for string pointer/index problem.
This commit is contained in:
+12
-2
@@ -8,14 +8,24 @@
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
#pragma pack( 1 )
|
||||
|
||||
struct StringRef
|
||||
{
|
||||
union
|
||||
{
|
||||
uint64_t strptr;
|
||||
uint32_t stridx;
|
||||
};
|
||||
bool isptr;
|
||||
};
|
||||
|
||||
struct TextData
|
||||
{
|
||||
const char* userText;
|
||||
uint64_t zoneName; // ptr
|
||||
};
|
||||
|
||||
#pragma pack( 1 )
|
||||
|
||||
struct SourceLocation
|
||||
{
|
||||
uint64_t function; // ptr
|
||||
|
||||
Reference in New Issue
Block a user