1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 20:33:52 +00:00

Ignore unknown source lines during ip stats gathering.

This commit is contained in:
Bartosz Taudul 2020-08-13 00:34:55 +02:00
parent 9258e2ced0
commit b6d54281a9

View File

@ -3112,6 +3112,8 @@ void SourceView::GatherIpStats( uint64_t addr, uint32_t& iptotalSrc, uint32_t& i
if( strcmp( ffn, m_file ) == 0 )
{
const auto line = frame->data[0].line;
if( line != 0 )
{
auto sit = ipcountSrc.find( line );
if( sit == ipcountSrc.end() )
{
@ -3128,6 +3130,7 @@ void SourceView::GatherIpStats( uint64_t addr, uint32_t& iptotalSrc, uint32_t& i
}
}
}
}
auto addr = worker.GetCanonicalPointer( it->ip );
auto sit = ipcountAsm.find( addr );
@ -3161,6 +3164,8 @@ void SourceView::GatherIpStats( uint64_t addr, uint32_t& iptotalSrc, uint32_t& i
if( strcmp( ffn, m_file ) == 0 )
{
const auto line = frame->data[0].line;
if( line != 0 )
{
auto it = ipcountSrc.find( line );
if( it == ipcountSrc.end() )
{
@ -3177,6 +3182,7 @@ void SourceView::GatherIpStats( uint64_t addr, uint32_t& iptotalSrc, uint32_t& i
}
}
}
}
auto addr = worker.GetCanonicalPointer( ip.first );
assert( ipcountAsm.find( addr ) == ipcountAsm.end() );