This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Add more logs and attach tracers to remote index server routines
AbandonedPublic

Authored by kbobyrev on Jul 14 2020, 4:36 PM.

Details

Reviewers
sammccall

Diff Detail

Event Timeline

kbobyrev created this revision.Jul 14 2020, 4:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2020, 4:36 PM
kbobyrev updated this revision to Diff 278081.Jul 14 2020, 11:57 PM

Rebase on top of parent revision, add more logging on the client side.

Server-side tracing looks nice, but you'll need some flags to allow actually extracting a trace, right?

clang-tools-extra/clangd/index/remote/server/Server.cpp
62 ↗(On Diff #278081)

Nit: this is "LookupRequest" on the client side. I'd suggest just the same on the server, or "Recv.LookupRequest" or so? to make it easier to correspond them

63 ↗(On Diff #278081)

you don't do this on the client side, but could

63 ↗(On Diff #278081)

prefer DebugString over ShortDebugString, the missing newlines can make it hard to follow

98 ↗(On Diff #278081)

you don't do this on the client side, but should

kbobyrev updated this revision to Diff 278237.Jul 15 2020, 10:22 AM
kbobyrev marked 5 inline comments as done.

Resolve the comments.

kbobyrev added inline comments.Jul 15 2020, 10:23 AM
clang-tools-extra/clangd/index/remote/server/Server.cpp
63 ↗(On Diff #278081)

Do you mean logging RPCRequest there? Done now.

kbobyrev updated this revision to Diff 280365.Jul 24 2020, 1:48 AM

Rebase on top of master

kbobyrev updated this revision to Diff 280383.Jul 24 2020, 3:19 AM

Reset D83831 to master.

kbobyrev abandoned this revision.Jul 24 2020, 3:20 AM