[Timers] TimerGroup::printJSONValues(): print mem timer with .mem suffix
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 16 May 2018 18:15:47 +0000 (18:15 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 16 May 2018 18:15:47 +0000 (18:15 +0000)
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

llvm-svn: 332503

llvm/lib/Support/Timer.cpp

index 903ba34..9b8cd76 100644 (file)
@@ -387,7 +387,7 @@ const char *TimerGroup::printJSONValues(raw_ostream &OS, const char *delim) {
     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();