diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 9a447771..ff1fa414 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -6,7 +6,6 @@ #include #include #include -#include #include #include "../common/tracy_lz4.hpp" @@ -17,6 +16,7 @@ #include "TracySlab.hpp" #include "TracyVector.hpp" #include "tracy_benaphore.h" +#include "tracy_flat_hash_map.hpp" struct ImVec2; @@ -170,9 +170,9 @@ private: Vector m_plots; Vector m_messages; Vector m_gpuData; - std::unordered_map m_strings; - std::unordered_map m_threadNames; - std::unordered_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; @@ -187,17 +187,17 @@ private: std::vector m_mbps; // not used for vis - no need to lock - std::unordered_map> m_zoneStack; - std::unordered_set m_pendingStrings; - std::unordered_set m_pendingThreads; - std::unordered_set m_pendingSourceLocation; - std::unordered_map m_pendingCustomStrings; - std::unordered_map m_threadMap; - std::unordered_map m_plotMap; + flat_hash_map, power_of_two_std_hash> m_zoneStack; + 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_plotMap; std::unordered_map m_plotRev; - std::unordered_map m_pendingPlots; - std::unordered_map m_sourceLocationShrink; - std::unordered_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; diff --git a/standalone/build/win32/Tracy.vcxproj b/standalone/build/win32/Tracy.vcxproj index 5e671825..11620322 100644 --- a/standalone/build/win32/Tracy.vcxproj +++ b/standalone/build/win32/Tracy.vcxproj @@ -117,6 +117,7 @@ + diff --git a/standalone/build/win32/Tracy.vcxproj.filters b/standalone/build/win32/Tracy.vcxproj.filters index bb629a79..8b269c06 100644 --- a/standalone/build/win32/Tracy.vcxproj.filters +++ b/standalone/build/win32/Tracy.vcxproj.filters @@ -149,5 +149,8 @@ server + + server + \ No newline at end of file