[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang-tools-extra / clangd / test / metrics.test
blob874a5dad8308f5759b95f705ac5b36c4f9c5cd64
1 # RUN: env CLANGD_METRICS=%t clangd -lit-test < %s && FileCheck %s < %t
2 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
3 ---
4 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///foo.c","languageId":"c","version":1,"text":"void main() {}"}}}
5 # Don't verify value, timestamp, or order.
6 # CHECK-DAG: d,lsp_latency,textDocument/didOpen,
7 # CHECK-DAG: c,ast_access_diag,miss,
8 ---
9 {"jsonrpc":"2.0","id":5,"method":"shutdown"}
10 ---
11 {"jsonrpc":"2.0","method":"exit"}