mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Rename PathData -> MemPathData.
This commit is contained in:
parent
a2547ccf1d
commit
c6be16dcd2
@ -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
|
||||
{
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user