[llvm] r345954 - [XRay] Update delta computations in runtime
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 2 01:07:38 PDT 2018
Author: dberris
Date: Fri Nov 2 01:07:38 2018
New Revision: 345954
URL: http://llvm.org/viewvc/llvm-project?rev=345954&view=rev
Log:
[XRay] Update delta computations in runtime
Summary:
Fix some issues discovered from mostly manual inspection of outputs from
the `llvm-xray fdr-dump` tool.
It turns out we haven't been writing the deltas properly, and have been
writing down zeros for deltas of some records. This change fixes this
oversight born by the recent refactoring.
Reviewers: mboerger
Subscribers: llvm-commits, hiraditya
Differential Revision: https://reviews.llvm.org/D54022
Modified:
llvm/trunk/lib/XRay/RecordPrinter.cpp
Modified: llvm/trunk/lib/XRay/RecordPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/XRay/RecordPrinter.cpp?rev=345954&r1=345953&r2=345954&view=diff
==============================================================================
--- llvm/trunk/lib/XRay/RecordPrinter.cpp (original)
+++ llvm/trunk/lib/XRay/RecordPrinter.cpp Fri Nov 2 01:07:38 2018
@@ -66,19 +66,19 @@ Error RecordPrinter::visit(FunctionRecor
// FIXME: Support symbolization here?
switch (R.recordType()) {
case RecordTypes::ENTER:
- OS << formatv("<Function Enter: #{0} delta = +{0}>", R.functionId(),
+ OS << formatv("<Function Enter: #{0} delta = +{1}>", R.functionId(),
R.delta());
break;
case RecordTypes::ENTER_ARG:
- OS << formatv("<Function Enter With Arg: #{0} delta = +{0}>",
+ OS << formatv("<Function Enter With Arg: #{0} delta = +{1}>",
R.functionId(), R.delta());
break;
case RecordTypes::EXIT:
- OS << formatv("<Function Exit: #{0} delta = +{0}>", R.functionId(),
+ OS << formatv("<Function Exit: #{0} delta = +{1}>", R.functionId(),
R.delta());
break;
case RecordTypes::TAIL_EXIT:
- OS << formatv("<Function Tail Exit: #{0} delta = +{0}>", R.functionId(),
+ OS << formatv("<Function Tail Exit: #{0} delta = +{1}>", R.functionId(),
R.delta());
break;
}
More information about the llvm-commits
mailing list