diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 4da42310..31ce4b3c 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -29,6 +29,13 @@ class FileWrite; class View { + template + struct nohash + { + size_t operator()( const T& v ) { return (size_t)v; } + typedef tracy::power_of_two_hash_policy hash_policy; + }; + public: View() : View( "127.0.0.1" ) {} View( const char* addr ); @@ -169,9 +176,9 @@ private: Vector m_plots; Vector m_messages; Vector m_gpuData; - flat_hash_map> m_strings; - flat_hash_map> m_threadNames; - flat_hash_map> m_sourceLocation; + flat_hash_map> m_strings; + flat_hash_map> m_threadNames; + flat_hash_map> m_sourceLocation; std::vector m_sourceLocationExpand; std::map m_lockMap; uint64_t m_zonesCnt; @@ -186,17 +193,17 @@ private: std::vector m_mbps; // not used for vis - no need to lock - flat_hash_set> m_pendingStrings; - flat_hash_set> m_pendingThreads; - flat_hash_set> m_pendingSourceLocation; - flat_hash_map> m_pendingCustomStrings; - flat_hash_map> m_threadMap; - flat_hash_map> m_gpuCtxMap; - flat_hash_map> m_plotMap; + flat_hash_set> m_pendingStrings; + flat_hash_set> m_pendingThreads; + flat_hash_set> m_pendingSourceLocation; + flat_hash_map> m_pendingCustomStrings; + flat_hash_map> m_threadMap; + flat_hash_map> m_gpuCtxMap; + flat_hash_map> m_plotMap; std::unordered_map m_plotRev; - flat_hash_map> m_pendingPlots; - flat_hash_map> m_sourceLocationShrink; - flat_hash_map> m_pendingSourceLocationPayload; + flat_hash_map> m_pendingPlots; + flat_hash_map> m_sourceLocationShrink; + flat_hash_map> m_pendingSourceLocationPayload; Vector m_sourceLocationQueue; Slab<64*1024*1024> m_slab;