mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
There are situations in which inSym can be nullptr.
Don't know exactly how to reproduce this. Nevertheless, the capture was produced in an usual way. This may be dependant on the exact client configuration.
This commit is contained in:
parent
fc37f3c04c
commit
4c0dd704d8
@ -13764,20 +13764,22 @@ void View::DrawSamplesStatistics(Vector<SymList>& data, int64_t timeRange, Accum
|
|||||||
if( !m_statSeparateInlines && hasNoSamples && v.symAddr != 0 && v.count > 0 )
|
if( !m_statSeparateInlines && hasNoSamples && v.symAddr != 0 && v.count > 0 )
|
||||||
{
|
{
|
||||||
auto inSym = m_worker.GetInlineSymbolList( v.symAddr, symlen );
|
auto inSym = m_worker.GetInlineSymbolList( v.symAddr, symlen );
|
||||||
assert( inSym != nullptr );
|
if( inSym )
|
||||||
const auto symEnd = v.symAddr + symlen;
|
|
||||||
while( *inSym < symEnd )
|
|
||||||
{
|
{
|
||||||
auto sit = inlineMap.find( *inSym );
|
const auto symEnd = v.symAddr + symlen;
|
||||||
if( sit != inlineMap.end() )
|
while( *inSym < symEnd )
|
||||||
{
|
{
|
||||||
if( sit->second.excl != 0 )
|
auto sit = inlineMap.find( *inSym );
|
||||||
|
if( sit != inlineMap.end() )
|
||||||
{
|
{
|
||||||
hasNoSamples = false;
|
if( sit->second.excl != 0 )
|
||||||
break;
|
{
|
||||||
|
hasNoSamples = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
inSym++;
|
||||||
}
|
}
|
||||||
inSym++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( hasNoSamples )
|
if( hasNoSamples )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user