mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Fix debug build.
This commit is contained in:
parent
8ea89ad58a
commit
06ae39d9cc
@ -4200,7 +4200,7 @@ void SourceView::GatherIpHwStats( AddrStatData& as, Worker& worker, const View&
|
|||||||
default: assert( false ); return;
|
default: assert( false ); return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert( ipcountAsm.find( addr ) == ipcountAsm.end() );
|
assert( as.ipCountAsm.find( addr ) == as.ipCountAsm.end() );
|
||||||
as.ipCountAsm.emplace( addr, AddrStat { stat, 0 } );
|
as.ipCountAsm.emplace( addr, AddrStat { stat, 0 } );
|
||||||
as.ipTotalAsm.local += stat;
|
as.ipTotalAsm.local += stat;
|
||||||
if( as.ipMaxAsm.local < stat ) as.ipMaxAsm.local = stat;
|
if( as.ipMaxAsm.local < stat ) as.ipMaxAsm.local = stat;
|
||||||
@ -4253,7 +4253,7 @@ void SourceView::CountHwStats( AddrStatData& as, Worker& worker, const View& vie
|
|||||||
branch = sqrt( hw->branchMiss.size() * hw->branchRetired.size() );
|
branch = sqrt( hw->branchMiss.size() * hw->branchRetired.size() );
|
||||||
cache = sqrt( hw->cacheMiss.size() * hw->cacheRef.size() );
|
cache = sqrt( hw->cacheMiss.size() * hw->cacheRef.size() );
|
||||||
}
|
}
|
||||||
assert( ipcountAsm.find( addr ) == ipcountAsm.end() );
|
assert( as.ipCountAsm.find( addr ) == as.ipCountAsm.end() );
|
||||||
as.hwCountAsm.emplace( addr, AddrStat { branch, cache } );
|
as.hwCountAsm.emplace( addr, AddrStat { branch, cache } );
|
||||||
if( as.hwMaxAsm.local < branch ) as.hwMaxAsm.local = branch;
|
if( as.hwMaxAsm.local < branch ) as.hwMaxAsm.local = branch;
|
||||||
if( as.hwMaxAsm.ext < cache ) as.hwMaxAsm.ext = cache;
|
if( as.hwMaxAsm.ext < cache ) as.hwMaxAsm.ext = cache;
|
||||||
@ -4356,7 +4356,7 @@ void SourceView::GatherIpStats( uint64_t baseAddr, AddrStatData& as, const Worke
|
|||||||
for( auto& ip : *ipmap )
|
for( auto& ip : *ipmap )
|
||||||
{
|
{
|
||||||
auto addr = worker.GetCanonicalPointer( ip.first );
|
auto addr = worker.GetCanonicalPointer( ip.first );
|
||||||
assert( ipcountAsm.find( addr ) == ipcountAsm.end() );
|
assert( as.ipCountAsm.find( addr ) == as.ipCountAsm.end() );
|
||||||
auto cp = slzReady ? worker.GetChildSamples( addr ) : nullptr;
|
auto cp = slzReady ? worker.GetChildSamples( addr ) : nullptr;
|
||||||
const auto ccnt = cp ? cp->size() : 0;
|
const auto ccnt = cp ? cp->size() : 0;
|
||||||
as.ipCountAsm.emplace( addr, AddrStat { ip.second, ccnt } );
|
as.ipCountAsm.emplace( addr, AddrStat { ip.second, ccnt } );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user