[clang-tools-extra] [clangd][trace] Fix comment to mention that trace spans are measured … (PR #86938)

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 28 04:47:23 PDT 2024


https://github.com/VitaNuo created https://github.com/llvm/llvm-project/pull/86938

…in milliseconds rather than seconds.

>From a30c86bf1769b4c5603ec49022e24c6fcf88f199 Mon Sep 17 00:00:00 2001
From: Viktoriia Bakalova <bakalova at google.com>
Date: Thu, 28 Mar 2024 11:38:38 +0000
Subject: [PATCH] [clangd][trace] Fix comment to mention that trace spans are
 measured in milliseconds rather than seconds.

---
 clang-tools-extra/clangd/support/Trace.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang-tools-extra/clangd/support/Trace.h b/clang-tools-extra/clangd/support/Trace.h
index 1bfc75b874d8a9..36c3745a41e969 100644
--- a/clang-tools-extra/clangd/support/Trace.h
+++ b/clang-tools-extra/clangd/support/Trace.h
@@ -143,8 +143,8 @@ bool enabled();
 class Span {
 public:
   Span(llvm::Twine Name);
-  /// Records span's duration in seconds to \p LatencyMetric with \p Name as the
-  /// label.
+  /// Records span's duration in milliseconds to \p LatencyMetric with \p Name
+  /// as the label.
   Span(llvm::Twine Name, const Metric &LatencyMetric);
   ~Span();
 



More information about the cfe-commits mailing list