mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Workaround failing assert.
The aggregate inlines code branch can fail when the top inlines option is enabled, on an assert. This was present in the code before, it's just that enabling top inlines is equivalent to expanding all the collapsed symbols, which is not something practical to do. Workaround by adding a condition instead of the assert. Finding a repro case would be better to figure out what's exactly happening there, but we are where we are.
This commit is contained in:
parent
2d6bcff3a6
commit
aca0f3cad7
@ -304,7 +304,8 @@ void View::DrawSamplesStatistics( Vector<SymList>& data, int64_t timeRange, Accu
|
|||||||
auto symAddr = *inSym;
|
auto symAddr = *inSym;
|
||||||
auto sit = inlineMap.find( symAddr );
|
auto sit = inlineMap.find( symAddr );
|
||||||
auto sym = symMap.find( symAddr );
|
auto sym = symMap.find( symAddr );
|
||||||
assert( sym != symMap.end() );
|
if( sym != symMap.end() )
|
||||||
|
{
|
||||||
auto mit = mergeMap.find( sym->second.name.Idx() );
|
auto mit = mergeMap.find( sym->second.name.Idx() );
|
||||||
if( mit == mergeMap.end() )
|
if( mit == mergeMap.end() )
|
||||||
{
|
{
|
||||||
@ -340,6 +341,7 @@ void View::DrawSamplesStatistics( Vector<SymList>& data, int64_t timeRange, Accu
|
|||||||
oit->second.count++;
|
oit->second.count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
inSym++;
|
inSym++;
|
||||||
}
|
}
|
||||||
inSymList.reserve( outMap.size() );
|
inSymList.reserve( outMap.size() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user