Remove or update some remaining non-inclusive terms. (#793)
This commit is contained in:
@@ -81,12 +81,12 @@ namespace AssetMemoryAnalyzer
|
||||
using AssetTree = AZ::Debug::AssetTree<Data::AssetData>;
|
||||
using AssetTreeNode = typename AssetTree::NodeType;
|
||||
using AllocationTable = AZ::Debug::AllocationTable<Data::AllocationData>;
|
||||
using MasterCodePoints = AZStd::unordered_set<Data::CodePoint, AZStd::hash<Data::CodePoint>, AZStd::equal_to<Data::CodePoint>, AZ::Debug::AZStdAssetTrackingAllocator>;
|
||||
using CodePoints = AZStd::unordered_set<Data::CodePoint, AZStd::hash<Data::CodePoint>, AZStd::equal_to<Data::CodePoint>, AZ::Debug::AZStdAssetTrackingAllocator>;
|
||||
using mutex_type = AZStd::mutex;
|
||||
using lock_type = AZStd::lock_guard<mutex_type>;
|
||||
|
||||
mutex_type m_mutex;
|
||||
MasterCodePoints m_masterCodePoints;
|
||||
CodePoints m_codePoints;
|
||||
AssetTree m_assetTree;
|
||||
AllocationTable m_allocationTable;
|
||||
AZ::Debug::AssetTracking m_assetTracking;
|
||||
@@ -195,7 +195,7 @@ namespace AssetMemoryAnalyzer
|
||||
{
|
||||
// Store a record for this allocation, at this code-point
|
||||
lock_type lock(m_mutex);
|
||||
auto insertResult = m_masterCodePoints.emplace(Data::CodePoint{ fileName ? fileName : "<unknown>", lineNum, category });
|
||||
auto insertResult = m_codePoints.emplace(Data::CodePoint{ fileName ? fileName : "<unknown>", lineNum, category });
|
||||
Data::CodePoint* cp = &*insertResult.first;
|
||||
m_allocationTable.Get().emplace(address, AllocationTable::RecordType{ activeAsset, (uint32_t)byteSize, Data::AllocationData{ cp, categoryInfo } });
|
||||
static_cast<typename AssetTree::NodeType*>(activeAsset)->m_data.m_totalAllocations[(int)category]++;
|
||||
|
||||
Reference in New Issue
Block a user