diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 0cab528f..6abddd0a 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -16783,9 +16783,9 @@ static tracy_force_inline MemCallstackFrameTree* GetFrameTreeItemGroup( unordere return &it->second; } -unordered_flat_map View::GetCallstackPaths( const MemData& mem, bool onlyActive ) const +unordered_flat_map View::GetCallstackPaths( const MemData& mem, bool onlyActive ) const { - unordered_flat_map pathSum; + unordered_flat_map pathSum; pathSum.reserve( m_worker.GetCallstackPayloadCount() ); const auto zvMid = m_vd.zvStart + ( m_vd.zvEnd - m_vd.zvStart ) / 2; @@ -16801,7 +16801,7 @@ unordered_flat_map View::GetCallstackPaths( const MemD auto it = pathSum.find( ev.CsAlloc() ); if( it == pathSum.end() ) { - pathSum.emplace( ev.CsAlloc(), PathData { 1, ev.Size() } ); + pathSum.emplace( ev.CsAlloc(), MemPathData { 1, ev.Size() } ); } else { @@ -16820,7 +16820,7 @@ unordered_flat_map View::GetCallstackPaths( const MemD auto it = pathSum.find( ev.CsAlloc() ); if( it == pathSum.end() ) { - pathSum.emplace( ev.CsAlloc(), PathData { 1, ev.Size() } ); + pathSum.emplace( ev.CsAlloc(), MemPathData { 1, ev.Size() } ); } else { diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 24e1883c..7cf98991 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -133,7 +133,7 @@ private: enum { InvalidId = 0xFFFFFFFF }; - struct PathData + struct MemPathData { uint32_t cnt; uint64_t mem; @@ -226,7 +226,7 @@ private: void ListMemData( std::vector& vec, std::function DrawAddress, const char* id = nullptr, int64_t startTime = -1, uint64_t pool = 0 ); - unordered_flat_map GetCallstackPaths( const MemData& mem, bool onlyActive ) const; + unordered_flat_map GetCallstackPaths( const MemData& mem, bool onlyActive ) const; unordered_flat_map GetCallstackFrameTreeBottomUp( const MemData& mem ) const; unordered_flat_map GetCallstackFrameTreeTopDown( const MemData& mem ) const; void DrawFrameTreeLevel( const unordered_flat_map& tree, int& idx );