summaryrefslogtreecommitdiffstats
path: root/llvm/lib/XRay/RecordPrinter.cpp
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2018-09-11 06:36:51 +0000
committerDean Michael Berris <dberris@google.com>2018-09-11 06:36:51 +0000
commitd2c50408d42f718c305a46c9cc6503d9156ea4d9 (patch)
treefdd044d1aba6d02aa05c941f1b6d670aa605ae07 /llvm/lib/XRay/RecordPrinter.cpp
parent9aacaffd9833381ed3d5de32fbece02afe2bba5e (diff)
downloadbcm5719-llvm-d2c50408d42f718c305a46c9cc6503d9156ea4d9.tar.gz
bcm5719-llvm-d2c50408d42f718c305a46c9cc6503d9156ea4d9.zip
[XRay] Add TSC to NewCPUId Records
Summary: This more correctly reflects the data written by the FDR mode runtime. This is a continuation of the work in D50441. Reviewers: mboerger, eizan Subscribers: hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D51911 llvm-svn: 341905
Diffstat (limited to 'llvm/lib/XRay/RecordPrinter.cpp')
-rw-r--r--llvm/lib/XRay/RecordPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/XRay/RecordPrinter.cpp b/llvm/lib/XRay/RecordPrinter.cpp
index d2943e4bad3..09b25ddba25 100644
--- a/llvm/lib/XRay/RecordPrinter.cpp
+++ b/llvm/lib/XRay/RecordPrinter.cpp
@@ -25,7 +25,7 @@ Error RecordPrinter::visit(WallclockRecord &R) {
}
Error RecordPrinter::visit(NewCPUIDRecord &R) {
- OS << formatv("<CPU ID: {0}>", R.cpuid()) << Delim;
+ OS << formatv("<CPU: id = {0}, tsc = {1}>", R.cpuid(), R.tsc()) << Delim;
return Error::success();
}
OpenPOWER on IntegriCloud