diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 2d28eec7..7a2e25cd 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1238,7 +1238,7 @@ static uint32_t GetHotnessColor( uint32_t ipSum, uint32_t maxIpCount ) } -void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_map ipcount, unordered_flat_map ipcountAsm, uint32_t ipmax, const Worker& worker, const View& view ) +void SourceView::RenderSymbolSourceView( uint32_t iptotal, const unordered_flat_map& ipcount, const unordered_flat_map& ipcountAsm, uint32_t ipmax, const Worker& worker, const View& view ) { if( m_sourceFiles.empty() ) { @@ -1637,7 +1637,7 @@ static int PrintHexBytes( char* buf, const uint8_t* bytes, size_t len, CpuArchit } } -uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map ipcount, uint32_t ipmax, const Worker& worker, View& view ) +uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, const unordered_flat_map& ipcount, uint32_t ipmax, const Worker& worker, View& view ) { if( m_disasmFail >= 0 ) { diff --git a/server/TracySourceView.hpp b/server/TracySourceView.hpp index 4b8055a6..264178ca 100644 --- a/server/TracySourceView.hpp +++ b/server/TracySourceView.hpp @@ -129,8 +129,8 @@ private: void RenderSimpleSourceView(); void RenderSymbolView( const Worker& worker, View& view ); - void RenderSymbolSourceView( uint32_t iptotal, unordered_flat_map ipcount, unordered_flat_map ipcountAsm, uint32_t ipmax, const Worker& worker, const View& view ); - uint64_t RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map ipcount, uint32_t ipmax, const Worker& worker, View& view ); + void RenderSymbolSourceView( uint32_t iptotal, const unordered_flat_map& ipcount, const unordered_flat_map& ipcountAsm, uint32_t ipmax, const Worker& worker, const View& view ); + uint64_t RenderSymbolAsmView( uint32_t iptotal, const unordered_flat_map& ipcount, uint32_t ipmax, const Worker& worker, View& view ); void RenderLine( const Tokenizer::Line& line, int lineNum, uint32_t ipcnt, uint32_t iptotal, uint32_t ipmax, const Worker* worker ); void RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal, uint32_t ipmax, const Worker& worker, uint64_t& jumpOut, int maxAddrLen, View& view );