[PATCH] D24377: [XRay] Implement the `llvm-xray account` subcommand
Alexis Shaw via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 19:08:15 PST 2016
varno added a comment.
At line 182-195 the following code I think is simpler and results in the function performing the same work.
if (Parent == ThreadStack.rend())
return false;
while (ThreadStack.back().FuncId != Record.FuncId) {
const auto &Top = ThreadStack.back();
recordLatency(Top.first, diff(Top.second, Record.TSC)):
ThreadStack.pop_back();
}
https://reviews.llvm.org/D24377
More information about the llvm-commits
mailing list