[llvm] r332503 - [Timers] TimerGroup::printJSONValues(): print mem timer with .mem suffix
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Wed May 16 11:15:47 PDT 2018
Author: lebedevri
Date: Wed May 16 11:15:47 2018
New Revision: 332503
URL: http://llvm.org/viewvc/llvm-project?rev=332503&view=rev
Log:
[Timers] TimerGroup::printJSONValues(): print mem timer with .mem suffix
Summary: We have just used `.sys` suffix for the previous timer, this is clearly a typo
Reviewers: george.karpenkov, NoQ, alexfh, sbenza
Reviewed By: alexfh
Subscribers: llvm-commits, cfe-commits
Differential Revision: https://reviews.llvm.org/D46936
Modified:
llvm/trunk/lib/Support/Timer.cpp
Modified: llvm/trunk/lib/Support/Timer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Timer.cpp?rev=332503&r1=332502&r2=332503&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Timer.cpp (original)
+++ llvm/trunk/lib/Support/Timer.cpp Wed May 16 11:15:47 2018
@@ -387,7 +387,7 @@ const char *TimerGroup::printJSONValues(
printJSONValue(OS, R, ".sys", T.getSystemTime());
if (T.getMemUsed()) {
OS << delim;
- printJSONValue(OS, R, ".sys", T.getMemUsed());
+ printJSONValue(OS, R, ".mem", T.getMemUsed());
}
}
TimersToPrint.clear();
More information about the llvm-commits
mailing list