mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
allow to specify path in analysis-stats
This commit is contained in:
parent
940c538ecf
commit
915489714b
2 changed files with 6 additions and 4 deletions
|
@ -7,9 +7,9 @@ use ra_syntax::AstNode;
|
|||
|
||||
use crate::Result;
|
||||
|
||||
pub fn run(verbose: bool, only: Option<&str>) -> Result<()> {
|
||||
pub fn run(verbose: bool, path: &str, only: Option<&str>) -> Result<()> {
|
||||
let db_load_time = Instant::now();
|
||||
let (db, roots) = BatchDatabase::load_cargo(".")?;
|
||||
let (db, roots) = BatchDatabase::load_cargo(path)?;
|
||||
println!("Database loaded, {} roots, {:?}", roots.len(), db_load_time.elapsed());
|
||||
let analysis_time = Instant::now();
|
||||
let mut num_crates = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue