From f38464cf553d34ab492da66fba336924e7174a40 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 23 May 2020 14:05:11 +0200 Subject: [PATCH] Rename SymbolCodeData to MemoryBlock. --- server/TracyWorker.cpp | 4 ++-- server/TracyWorker.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 83ca3230..33cc0594 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1783,7 +1783,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks ) ssz += len; auto ptr = (char*)m_slab.AllocBig( len ); f.Read( ptr, len ); - m_data.symbolCode.emplace( symAddr, SymbolCodeData { ptr, len } ); + m_data.symbolCode.emplace( symAddr, MemoryBlock { ptr, len } ); } m_data.symbolCodeSize = ssz; } @@ -3736,7 +3736,7 @@ void Worker::AddSymbolCode( uint64_t ptr, const char* data, size_t sz ) auto code = (char*)m_slab.AllocBig( sz ); memcpy( code, data, sz ); - m_data.symbolCode.emplace( ptr, SymbolCodeData{ code, uint32_t( sz ) } ); + m_data.symbolCode.emplace( ptr, MemoryBlock{ code, uint32_t( sz ) } ); m_data.symbolCodeSize += sz; if( m_data.cpuArch == CpuArchUnknown ) return; diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index ba97ac23..c5ab3c00 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -123,7 +123,7 @@ public: uint32_t core; }; - struct SymbolCodeData + struct MemoryBlock { const char* data; uint32_t len; @@ -299,7 +299,7 @@ private: unordered_flat_map>> cpuTopology; unordered_flat_map cpuTopologyMap; - unordered_flat_map symbolCode; + unordered_flat_map symbolCode; uint64_t symbolCodeSize = 0; unordered_flat_map codeAddressToLocation;