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:
@@ -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() );
|
||||||
|
|||||||
Reference in New Issue
Block a user