Rename PathData -> MemPathData.

This commit is contained in:
Bartosz Taudul 2021-11-13 21:28:56 +01:00
parent a2547ccf1d
commit c6be16dcd2
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 6 additions and 6 deletions

View File

@ -16783,9 +16783,9 @@ static tracy_force_inline MemCallstackFrameTree* GetFrameTreeItemGroup( unordere
return &it->second;
}
unordered_flat_map<uint32_t, View::PathData> View::GetCallstackPaths( const MemData& mem, bool onlyActive ) const
unordered_flat_map<uint32_t, View::MemPathData> View::GetCallstackPaths( const MemData& mem, bool onlyActive ) const
{
unordered_flat_map<uint32_t, PathData> pathSum;
unordered_flat_map<uint32_t, MemPathData> 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<uint32_t, View::PathData> 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<uint32_t, View::PathData> 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
{

View File

@ -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<const MemEvent*>& vec, std::function<void(const MemEvent*)> DrawAddress, const char* id = nullptr, int64_t startTime = -1, uint64_t pool = 0 );
unordered_flat_map<uint32_t, PathData> GetCallstackPaths( const MemData& mem, bool onlyActive ) const;
unordered_flat_map<uint32_t, MemPathData> GetCallstackPaths( const MemData& mem, bool onlyActive ) const;
unordered_flat_map<uint64_t, MemCallstackFrameTree> GetCallstackFrameTreeBottomUp( const MemData& mem ) const;
unordered_flat_map<uint64_t, MemCallstackFrameTree> GetCallstackFrameTreeTopDown( const MemData& mem ) const;
void DrawFrameTreeLevel( const unordered_flat_map<uint64_t, MemCallstackFrameTree>& tree, int& idx );