Support loading OUT_DIR for CLI runs

This commit is contained in:
Emil Lauridsen
2020-03-16 14:51:44 +01:00
parent 9e7dbb1abd
commit f84deffd72
5 changed files with 80 additions and 47 deletions

View File

@@ -23,9 +23,10 @@ pub fn analysis_stats(
only: Option<&str>,
with_deps: bool,
randomize: bool,
load_output_dirs: bool,
) -> Result<()> {
let db_load_time = Instant::now();
let (mut host, roots) = load_cargo(path)?;
let (mut host, roots) = load_cargo(path, load_output_dirs)?;
let db = host.raw_database();
println!("Database loaded, {} roots, {:?}", roots.len(), db_load_time.elapsed());
let analysis_time = Instant::now();