Add a command to compute memory usage statistics

This commit is contained in:
Jonas Schievink
2020-07-07 12:10:14 +02:00
parent 0f5d62a3f3
commit f44c4b61e1
8 changed files with 74 additions and 1 deletions

View File

@@ -14,6 +14,14 @@ impl Request for AnalyzerStatus {
const METHOD: &'static str = "rust-analyzer/analyzerStatus";
}
pub enum MemoryUsage {}
impl Request for MemoryUsage {
type Params = ();
type Result = String;
const METHOD: &'static str = "rust-analyzer/memoryUsage";
}
pub enum ReloadWorkspace {}
impl Request for ReloadWorkspace {