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:
parent
9258e2ced0
commit
b6d54281a9
@ -3112,6 +3112,8 @@ void SourceView::GatherIpStats( uint64_t addr, uint32_t& iptotalSrc, uint32_t& i
|
|||||||
if( strcmp( ffn, m_file ) == 0 )
|
if( strcmp( ffn, m_file ) == 0 )
|
||||||
{
|
{
|
||||||
const auto line = frame->data[0].line;
|
const auto line = frame->data[0].line;
|
||||||
|
if( line != 0 )
|
||||||
|
{
|
||||||
auto sit = ipcountSrc.find( line );
|
auto sit = ipcountSrc.find( line );
|
||||||
if( sit == ipcountSrc.end() )
|
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 addr = worker.GetCanonicalPointer( it->ip );
|
||||||
auto sit = ipcountAsm.find( addr );
|
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 )
|
if( strcmp( ffn, m_file ) == 0 )
|
||||||
{
|
{
|
||||||
const auto line = frame->data[0].line;
|
const auto line = frame->data[0].line;
|
||||||
|
if( line != 0 )
|
||||||
|
{
|
||||||
auto it = ipcountSrc.find( line );
|
auto it = ipcountSrc.find( line );
|
||||||
if( it == ipcountSrc.end() )
|
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 );
|
auto addr = worker.GetCanonicalPointer( ip.first );
|
||||||
assert( ipcountAsm.find( addr ) == ipcountAsm.end() );
|
assert( ipcountAsm.find( addr ) == ipcountAsm.end() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user