// Record called target sample and its count
const FrameLocation &LeafLoc = Binary->getInlineLeafFrameLoc(SourceOffset);
-
FunctionProfile.addCalledTargetSamples(LeafLoc.second.LineOffset,
LeafLoc.second.Discriminator,
CalleeName, Count);
- FunctionProfile.addTotalSamples(Count);
// Record head sample for called target(callee)
// TODO: Cleanup ' @ '
CallerLeafFrameLoc.second.LineOffset,
CallerLeafFrameLoc.second.Discriminator, CalleeProfile.getName(),
EstimatedCallCount);
- updateBodySamplesforFunctionProfile(CallerProfile, CallerLeafFrameLoc,
- EstimatedCallCount);
+ CallerProfile.addBodySamples(CallerLeafFrameLoc.second.LineOffset,
+ CallerLeafFrameLoc.second.Discriminator,
+ EstimatedCallCount);
+ CallerProfile.addTotalSamples(EstimatedCallCount);
}
}