internal: drop latest requests tracking

From the dawn of time, when dinosaurs roamed the and we didn't have
hierarchical profiling, there was the `latest_requests` infra we used to
track the time of ten last requests.

Today, no one is actually using it and, what's more, it itself became
pretty useless -- LSP grew way more chatty, and 10 requests don't really
paint any kind of picture.

Personally, it's been years since I last looked at latest requests in
the status output.

So, let's remove a tiny bit of state from the big ball of complexity
that is `GlobalState` and `main_loop`!
This commit is contained in:
Aleksey Kladov
2021-08-09 18:56:19 +03:00
parent d0648494e6
commit ce8400bbfd
4 changed files with 1 additions and 53 deletions

View File

@@ -30,7 +30,6 @@ mod semantic_tokens;
mod markdown;
mod diagnostics;
mod line_index;
mod request_metrics;
mod lsp_utils;
mod thread_pool;
mod mem_docs;