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

Store zone text in StringRef. Use name from source location.

This commit is contained in:
Bartosz Taudul
2017-11-14 23:31:24 +01:00
committed by Bartosz Taudul
parent 2f669aea41
commit 8b2af369ad
3 changed files with 22 additions and 86 deletions
+1 -7
View File
@@ -39,12 +39,6 @@ struct StringRef
uint8_t active : 1;
};
struct TextData
{
const char* userText;
StringRef zoneName;
};
struct SourceLocation
{
StringRef name;
@@ -65,7 +59,7 @@ struct ZoneEvent
int8_t cpu_start;
int8_t cpu_end;
int32_t text;
StringRef text;
Vector<ZoneEvent*> child;
};