[clang-tools-extra] 5e4a77f - [clangd] Record latency for ASTSignal derivation

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 28 05:35:07 PDT 2022


Author: Kadir Cetinkaya
Date: 2022-04-28T14:34:39+02:00
New Revision: 5e4a77f0c4e7e8122e8ee3a15fff0971f5db2244

URL: https://github.com/llvm/llvm-project/commit/5e4a77f0c4e7e8122e8ee3a15fff0971f5db2244
DIFF: https://github.com/llvm/llvm-project/commit/5e4a77f0c4e7e8122e8ee3a15fff0971f5db2244.diff

LOG: [clangd] Record latency for ASTSignal derivation

Added: 
    

Modified: 
    clang-tools-extra/clangd/ASTSignals.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/ASTSignals.cpp b/clang-tools-extra/clangd/ASTSignals.cpp
index 58c57e147d41..8476641391b9 100644
--- a/clang-tools-extra/clangd/ASTSignals.cpp
+++ b/clang-tools-extra/clangd/ASTSignals.cpp
@@ -9,10 +9,12 @@
 #include "ASTSignals.h"
 #include "AST.h"
 #include "FindTarget.h"
+#include "support/Trace.h"
 
 namespace clang {
 namespace clangd {
 ASTSignals ASTSignals::derive(const ParsedAST &AST) {
+  trace::Span Span("ASTSignals::derive");
   ASTSignals Signals;
   const SourceManager &SM = AST.getSourceManager();
   findExplicitReferences(


        


More information about the cfe-commits mailing list