[PATCH] D40132: [clangd] Tracing improvements

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 16 08:09:21 PST 2017


sammccall created this revision.

[clangd] Tracing improvements

Compose JSON using JSONExpr
Allow attaching metadata to spans (and avoid it if tracing is off)
Attach IDs and responses of JSON RPCs to their spans

The downside is that large responses make the trace viewer sluggish.
We should make our responses less huge :-) Or fix trace viewer.


https://reviews.llvm.org/D40132

Files:
  clangd/ClangdUnit.cpp
  clangd/JSONRPCDispatcher.cpp
  clangd/JSONRPCDispatcher.h
  clangd/Trace.cpp
  clangd/Trace.h
  clangd/tool/ClangdMain.cpp
  test/clangd/trace.test
  unittests/clangd/TraceTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40132.123186.patch
Type: text/x-patch
Size: 12775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171116/0c151ad1/attachment-0001.bin>


More information about the cfe-commits mailing list