Like probe-based profile, the total samples is the sum of all its body samples. This patch fix it by a post-processing update for the line-number based profile. Tested it on our internal services, results showed no performance change.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
lgtm, except a nit. thanks.
llvm/include/llvm/ProfileData/SampleProf.h | ||
---|---|---|
735 | nit: inferTotalSamples->updateTotalSamples, same for ProfileGenerator. |
nit: inferTotalSamples->updateTotalSamples, same for ProfileGenerator.