[PATCH] D46936: [Timers] TimerGroup::printJSONValues(): print mem timer with .mem suffix

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 16 04:58:48 PDT 2018


lebedev.ri created this revision.
lebedev.ri added reviewers: george.karpenkov, NoQ, alexfh, sbenza.
Herald added a subscriber: llvm-commits.
lebedev.ri added a dependent revision: D46937: [Timers] TimerGroup::printJSONValue(): print doubles with no precision loss.

We have just used `.sys` suffix for the previous timer, this is clearly a typo


Repository:
  rL LLVM

https://reviews.llvm.org/D46936

Files:
  lib/Support/Timer.cpp


Index: lib/Support/Timer.cpp
===================================================================
--- lib/Support/Timer.cpp
+++ lib/Support/Timer.cpp
@@ -387,7 +387,7 @@
     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();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46936.147052.patch
Type: text/x-patch
Size: 417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180516/20d9bff5/attachment.bin>


More information about the llvm-commits mailing list