diff options
Diffstat (limited to 'contrib/llvm/include/llvm/Support/Timer.h')
-rw-r--r-- | contrib/llvm/include/llvm/Support/Timer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/llvm/include/llvm/Support/Timer.h b/contrib/llvm/include/llvm/Support/Timer.h index 80e8f13dccfe..198855ae0377 100644 --- a/contrib/llvm/include/llvm/Support/Timer.h +++ b/contrib/llvm/include/llvm/Support/Timer.h @@ -207,6 +207,9 @@ public: /// This static method prints all timers and clears them all out. static void printAll(raw_ostream &OS); + /// Prints all timers as JSON key/value pairs, and clears them all out. + static const char *printAllJSONValues(raw_ostream &OS, const char *delim); + /// Ensure global timer group lists are initialized. This function is mostly /// used by the Statistic code to influence the construction and destruction /// order of the global timer lists. @@ -221,7 +224,6 @@ private: void printJSONValue(raw_ostream &OS, const PrintRecord &R, const char *suffix, double Value); const char *printJSONValues(raw_ostream &OS, const char *delim); - static const char *printAllJSONValues(raw_ostream &OS, const char *delim); }; } // end namespace llvm |