From 55a966f9c6382d904381c2e1efab3d9b42419293 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 26 Jul 2021 01:18:17 +0200 Subject: [PATCH] Fix assert. --- server/TracySourceView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index c6af9116..7b99fa99 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -4253,7 +4253,7 @@ void SourceView::CountHwStats( AddrStatData& as, Worker& worker, const View& vie branch = sqrt( hw->branchMiss.size() * hw->branchRetired.size() ); cache = sqrt( hw->cacheMiss.size() * hw->cacheRef.size() ); } - assert( as.ipCountAsm.find( addr ) == as.ipCountAsm.end() ); + assert( as.hwCountAsm.find( addr ) == as.hwCountAsm.end() ); as.hwCountAsm.emplace( addr, AddrStat { branch, cache } ); if( as.hwMaxAsm.local < branch ) as.hwMaxAsm.local = branch; if( as.hwMaxAsm.ext < cache ) as.hwMaxAsm.ext = cache;