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

Store custom strings in an addressable vector.

This commit is contained in:
Bartosz Taudul
2017-11-10 17:13:30 +01:00
parent 97fad073d9
commit 44ee282b6e
2 changed files with 12 additions and 8 deletions
+3 -1
View File
@@ -233,12 +233,14 @@ private:
Vector<SourceLocation*> m_sourceLocationPayload;
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;
std::unordered_map<uint64_t, SourceLocation> m_sourceLocation;
std::vector<uint64_t> m_sourceLocationExpand;
std::map<uint32_t, LockMap> m_lockMap;
uint64_t m_zonesCnt;
Vector<const char*> m_customStringData;
std::unordered_map<const char*, uint32_t, charutil::Hasher, charutil::Comparator> m_customStringMap;
std::mutex m_mbpslock;
std::vector<float> m_mbps;