[PATCH] D42524: [clangd] Improve the tracing API

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 131407. ilya-biryukov added a comment. - Remove redundant code Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42524 Files: clangd/JSONRPCDispatcher.cpp clangd/Trace.cpp clangd/Trace.h Index: clangd/Trace.h =

[PATCH] D42524: [clangd] Improve the tracing API

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: sammccall. Herald added subscribers: ioeric, jkorous-apple, klimek. The new API allows tracing events to outlive individual Spans and gives a guarantee that invididual Spans will be not be called from multiple threads. Reposito