1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Enable sample parents selection for self-less symbols.

This commit is contained in:
Bartosz Taudul 2021-11-27 18:12:06 +01:00
parent 05f9c74170
commit f3ee2235f6
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -13598,7 +13598,27 @@ void View::DrawSamplesStatistics(Vector<SymList>& data, int64_t timeRange, Accum
auto it = inlineMap.find( v.symAddr );
excl = it != inlineMap.end() ? it->second.excl : 0;
}
if( v.symAddr == 0 || excl == 0 )
bool hasNoSamples = v.symAddr == 0 || excl == 0;
if( !m_statSeparateInlines && hasNoSamples && v.symAddr != 0 && v.count > 0 )
{
auto inSym = m_worker.GetInlineSymbolList( v.symAddr, symlen );
assert( inSym != nullptr );
const auto symEnd = v.symAddr + symlen;
while( *inSym < symEnd )
{
auto sit = inlineMap.find( *inSym );
if( sit != inlineMap.end() )
{
if( sit->second.excl != 0 )
{
hasNoSamples = false;
break;
}
}
inSym++;
}
}
if( hasNoSamples )
{
if( isKernel )
{