diff options
author | Alan Zhao <ayzhao@google.com> | 2025-04-30 13:43:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-30 13:43:05 -0700 |
commit | 4a6c81dc0e2790ec48a7da483970b95d847be8d7 (patch) | |
tree | a719934390abc3f3c882850b2b474e39a1148445 /llvm/lib/Support/Timer.cpp | |
parent | 228b3309880bbd5a237257df5d67a0f7f4b5a01f (diff) | |
download | llvm-4a6c81dc0e2790ec48a7da483970b95d847be8d7.zip llvm-4a6c81dc0e2790ec48a7da483970b95d847be8d7.tar.gz llvm-4a6c81dc0e2790ec48a7da483970b95d847be8d7.tar.bz2 |
[clang] Implement JSON formatted -ftime-report (#137737)
This patch adds a new flag, -ftime-report-json, which outputs the same
information as -ftime-report but as JSON instead of -ftime-report's
pretty printed format.
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
-rw-r--r-- | llvm/lib/Support/Timer.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp index 69a1846..22811d7 100644 --- a/llvm/lib/Support/Timer.cpp +++ b/llvm/lib/Support/Timer.cpp @@ -442,10 +442,6 @@ void TimerGroup::clearAll() { void TimerGroup::printJSONValue(raw_ostream &OS, const PrintRecord &R, const char *suffix, double Value) { - assert(yaml::needsQuotes(Name) == yaml::QuotingType::None && - "TimerGroup name should not need quotes"); - assert(yaml::needsQuotes(R.Name) == yaml::QuotingType::None && - "Timer name should not need quotes"); constexpr auto max_digits10 = std::numeric_limits<double>::max_digits10; OS << "\t\"time." << Name << '.' << R.Name << suffix << "\": " << format("%.*e", max_digits10 - 1, Value); |