mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Store TextData pointer as an index in array.
This further reduces ZoneEvent size by 4 bytes.
This commit is contained in:
@@ -201,6 +201,7 @@ private:
|
||||
const ZoneEvent* GetZoneParent( const ZoneEvent& zone ) const;
|
||||
|
||||
TextData* GetTextData( ZoneEvent& zone );
|
||||
const TextData* GetTextData( const ZoneEvent& zone ) const;
|
||||
|
||||
void Write( FileWrite& f );
|
||||
void WriteTimeline( FileWrite& f, const Vector<ZoneEvent*>& vec );
|
||||
@@ -221,6 +222,7 @@ private:
|
||||
Vector<ThreadData*> m_threads;
|
||||
Vector<PlotData*> m_plots;
|
||||
Vector<MessageData*> m_messages;
|
||||
Vector<TextData*> m_textData;
|
||||
std::unordered_map<uint64_t, std::string> m_strings;
|
||||
std::unordered_map<uint64_t, std::string> m_threadNames;
|
||||
std::unordered_set<const char*, charutil::Hasher, charutil::Comparator> m_customStrings;
|
||||
|
||||
Reference in New Issue
Block a user