https://github.com/WenleiHe commented: Thanks for looking into alternatives. Actually how about we add another function `FunctionSamples::RemoveCallSamples` to do this? We already have `removeCalledTargetAndBodySample`. https://github.com/llvm/llvm-project/pull/81803