| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-02-25 | Add CSV output to analysis-stats | Florian Diebold | -5/+48 | |
| For easy diffing. | ||||
| 2021-09-26 | Begining of lsif | hamidreza kalbasi | -2/+0 | |
| 2021-08-31 | internal: split database loading time in anaysis-stats into components | Aleksey Kladov | -7/+29 | |
| 2021-08-10 | Update crates/rust-analyzer/src/cli/analysis_stats.rs | Aleksey Kladov | -1/+1 | |
| Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com> | ||||
| 2021-08-10 | internal: print total size of source code in analysis-stats | Aleksey Kladov | -4/+25 | |
| 2021-08-10 | internal: unify subcommand handling between ra and xtask | Aleksey Kladov | -17/+4 | |
| 2021-07-18 | internal: simplify handling of the build scripts | Aleksey Kladov | -1/+0 | |
| 2021-06-11 | Only prefill caches in the completion benchmark | Kirill Bulatov | -0/+1 | |
| 2021-06-05 | Enable proc macros and build scripts by default in CLI | Laurențiu Nicola | -4/+4 | |
| 2021-05-27 | Display unknown types in analysis-stats | Laurențiu Nicola | -34/+53 | |
| 2021-04-12 | feat: avoid checking the whole project during initial loading | Aleksey Kladov | -0/+1 | |
| 2021-04-06 | Move Ty accessors to TyExt | Lukas Wirth | -1/+1 | |
| 2021-04-05 | analysis-stats: allow skipping type inference | Jonas Schievink | -22/+38 | |
| This removes "noise" from memory profiles since it avoids lowering function bodies and types | ||||
| 2021-03-14 | Add no-sysroot flag for analysis-stats | Edwin Cheng | -1/+4 | |
| 2021-03-13 | Separate `Ty` and `TyKind` like in Chalk | Florian Diebold | -3/+3 | |
| Currently `Ty` just wraps `TyKind`, but this allows us to change most places to already use `intern` / `interned`. | ||||
| 2021-03-02 | Fix ProcMacroClient dropped too early in cli | Edwin Cheng | -1/+1 | |
| 2021-02-16 | Merge #7690 | bors[bot] | -3/+4 | |
| 7690: Extract `fn load_workspace(…)` from `fn load_cargo(…)` r=matklad a=regexident Unfortunately in https://github.com/rust-analyzer/rust-analyzer/pull/7595 I forgot to `pub use` (rather than just `use`) the newly introduced `LoadCargoConfig`. So this PR fixes this now. It also: - splits up `fn load_cargo` into a "workspace loading" and a "project loading" phase - adds a `progress: &dyn Fn(String)` to allow third-parties to provide CLI progress updates, too The motivation behind both of these is the fact that rust-analyzer currently does not support caching. As such any third-party making use of `ra_ap_…` needs to providing a caching layer itself. Unlike for rust-analyzer itself however a common use-pattern of third-parties is to analyze a specific target (`--lib`/`--bin <BIN>`/…) from a specific package (`--package`). The targets/packages of a crate can be obtained via `ProjectWorkspace::load(…)`, which currently is performed inside of `fn load_cargo`, effectively making the returned `ProjectWorkspace` inaccessible to the outer caller. With this information one can then provide early error handling via CLI (in case of ambiguities or invalid arguments, etc), instead of `fn load_cargo` failing with a possibly obscure error message. It also allows for annotating the persisted caches with its specific associated package/target selector and short-circuit quickly if a matching cache is found on disk, significantly cutting load times. Before: ```rust pub struct LoadCargoConfig { pub cargo_config: &CargoConfig, pub load_out_dirs_from_check: bool, pub with_proc_macro: bool, } pub fn load_cargo( root: &Path, config: &LoadCargoConfig ) -> Result<(AnalysisHost, vfs::Vfs)> { // ... } ``` After: ```rust pub fn load_workspace( root: &Path, config: &CargoConfig, progress: &dyn Fn(String), ) -> Result<ProjectWorkspace> { // ... } pub struct LoadCargoConfig { pub load_out_dirs_from_check: bool, pub with_proc_macro: bool, } pub fn load_cargo( ws: ProjectWorkspace, config: &LoadCargoConfig, progress: &dyn Fn(String), ) -> Result<(AnalysisHost, vfs::Vfs)> { // ... } ``` Co-authored-by: Vincent Esche <regexident@gmail.com> | ||||
| 2021-02-16 | Prepare for utf-8 offsets | Aleksey Kladov | -4/+4 | |
| 2021-02-16 | Split `pub fn cargo_load` into `pub fn load_workspace_at` and `pub fn ↵ | Vincent Esche | -3/+4 | |
| load_workspace` | ||||
| 2021-02-08 | Consolidate `fn load_cargo(…)` parameters into `struct LoadCargoConfig ↵ | Vincent Esche | -8/+10 | |
| { … }` | ||||
| 2021-02-08 | Add `config: &CargoConfig` parameter to `fn load_cargo(…)` | Vincent Esche | -1/+6 | |
| 2021-01-21 | Include `countme` crate to count important data structures. | Aleksey Kladov | -0/+5 | |
| 2021-01-11 | Improve analysis stats legibility | Aleksey Kladov | -20/+17 | |
| 2021-01-10 | Make default memory stats less verbose | Aleksey Kladov | -1/+1 | |
| 2021-01-02 | Only log path and syntax range when processing function if source exists | Nick Spain | -6/+6 | |
| 2021-01-02 | Mark HasSource::source_old as deprecated but allow at all call sites | Nick Spain | -0/+1 | |
| 2021-01-02 | HasSource::source -> HasSource::source_old | Nick Spain | -1/+1 | |
| To start migrating HasSource::source to return an Option. | ||||
| 2020-12-11 | Move print_memory_usage to cli.rs | Jonas Schievink | -5/+3 | |
| 2020-12-08 | Make `original_range` a method on `InFile<&SyntaxNode>` | Jonas Schievink | -2/+2 | |
| 2020-10-24 | Re-export base_db from ide_db | Igor Aleksanov | -4/+4 | |
| 2020-08-13 | Rename ra_db -> base_db | Aleksey Kladov | -4/+4 | |
| 2020-08-12 | Rename ra_syntax -> syntax | Aleksey Kladov | -1/+1 | |
| 2020-08-12 | Rename ra_prof -> profile | Aleksey Kladov | -1/+1 | |
| 2020-08-09 | Remove Option<...> from result of Crate::root_module | Paul Daniel Faria | -1/+1 | |
| There doesn't seem to be any need for it, and removing it simplies several paths of code that depend on it. | ||||
| 2020-07-30 | Use CmdArgs pattern for bench & analysis stats | Aleksey Kladov | -222/+229 | |
| 2020-07-30 | Code shuffle resiliently | Aleksey Kladov | -3/+8 | |
| 2020-07-30 | Rename metric | Aleksey Kladov | -1/+1 | |
| 2020-07-30 | Do not show progress with parallel analysis | Aleksey Kladov | -0/+1 | |
| 2020-07-30 | Report instructions in addition to time | Aleksey Kladov | -20/+20 | |
| They hopefully will be more stable on CI | ||||
| 2020-07-30 | Allow negative bytes | Aleksey Kladov | -11/+3 | |
| Gotta be optimistic about those memory usage optimizations | ||||
| 2020-07-29 | Update crates/rust-analyzer/src/cli/analysis_stats.rs | Aleksey Kladov | -1/+1 | |
| Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com> | ||||
| 2020-07-29 | Replace rand with oorandom | Aleksey Kladov | -5/+20 | |
| 2020-07-26 | Report type errors in metrics | Aleksey Kladov | -0/+4 | |
| 2020-07-25 | Add rustc-perf to metrics | Aleksey Kladov | -19/+40 | |
| 2020-07-15 | Add --memory-usage to analysis-bench | Jonas Schievink | -18/+6 | |
| 2020-07-03 | Track VFS and remaining/unaccounted memory | Jonas Schievink | -4/+14 | |
| 2020-06-30 | analysis-stats: allow parallel type inference | Jonas Schievink | -2/+29 | |
| 2020-06-29 | Use more of FxHash* | Laurențiu Nicola | -4/+6 | |
| 2020-06-24 | Make Debug less verbose for VfsPath and use Display in analysis-stats | Laurențiu Nicola | -1/+1 | |
| 2020-06-23 | New VFS | Aleksey Kladov | -17/+8 | |
