Count proper number of parent stacks.

This commit is contained in:
Bartosz Taudul 2020-02-29 17:58:17 +01:00
parent c18584fdbc
commit bc14ca86f3

View File

@ -5434,11 +5434,11 @@ void Worker::UpdateSampleStatisticsImpl( const CallstackFrameData** frames, uint
auto sit = sym0->second.parents.find( idx );
if( sit == sym0->second.parents.end() )
{
sym0->second.parents.emplace( idx, 1 );
sym0->second.parents.emplace( idx, count );
}
else
{
sit->second++;
sit->second += count;
}
}
#endif