1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Fix source-less sample count calculations.

This commit is contained in:
Bartosz Taudul 2020-04-09 02:04:22 +02:00
parent 3177865fc2
commit 0f42dc2e4c

View File

@ -472,6 +472,8 @@ void SourceView::RenderSymbolView( const Worker& worker )
if( ipmap ) if( ipmap )
{ {
for( auto& ip : *ipmap ) for( auto& ip : *ipmap )
{
if( m_file )
{ {
auto frame = worker.GetCallstackFrame( ip.first ); auto frame = worker.GetCallstackFrame( ip.first );
if( frame ) if( frame )
@ -492,6 +494,7 @@ void SourceView::RenderSymbolView( const Worker& worker )
iptotalSrc += ip.second; iptotalSrc += ip.second;
} }
} }
}
auto addr = worker.GetCanonicalPointer( ip.first ); auto addr = worker.GetCanonicalPointer( ip.first );
assert( ipcountAsm.find( addr ) == ipcountAsm.end() ); assert( ipcountAsm.find( addr ) == ipcountAsm.end() );