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

Common storage for plot names.

This commit is contained in:
Bartosz Taudul
2017-11-10 19:41:37 +01:00
parent 5ec3ccd595
commit 96ce90c6ed
2 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -173,7 +173,7 @@ private:
void InsertPlot( PlotData* plot, int64_t time, double val );
void InsertPlot( PlotData* plot, PlotItem* item );
void HandlePlotName( uint64_t name, std::string&& str );
void HandlePlotName( uint64_t name, char* str, size_t sz );
void HandlePostponedPlots();
int64_t GetFrameTime( size_t idx ) const;
@@ -259,7 +259,7 @@ private:
std::unordered_map<uint64_t, ZoneEvent*> m_pendingCustomStrings;
std::unordered_map<uint64_t, uint32_t> m_threadMap;
std::unordered_map<uint64_t, uint32_t> m_plotMap;
std::unordered_map<std::string, uint32_t> m_plotRev;
std::unordered_map<const char*, uint32_t, charutil::Hasher, charutil::Comparator> m_plotRev;
std::unordered_map<uint64_t, PlotData*> m_pendingPlots;
std::unordered_map<uint64_t, MessagePending> m_pendingMessages;
std::unordered_map<uint64_t, uint32_t> m_sourceLocationShrink;