From c39ad98d80de35c58b506019cb6ca3b047e8bbb6 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Wed, 16 May 2018 18:15:47 +0000 Subject: [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 llvm-svn: 332503 --- llvm/lib/Support/Timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/Timer.cpp') diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp index 903ba341b63..9b8cd76fbfb 100644 --- a/llvm/lib/Support/Timer.cpp +++ b/llvm/lib/Support/Timer.cpp @@ -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(); -- cgit v1.2.3