diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/crates/candelabra/src/cost/benchmark.rs | 9 | ||||
-rw-r--r-- | src/crates/candelabra/src/profiler/mod.rs | 6 | ||||
-rw-r--r-- | src/crates/primrose/src/selector.rs | 6 |
3 files changed, 11 insertions, 10 deletions
diff --git a/src/crates/candelabra/src/cost/benchmark.rs b/src/crates/candelabra/src/cost/benchmark.rs index 6769ee1..e3a2186 100644 --- a/src/crates/candelabra/src/cost/benchmark.rs +++ b/src/crates/candelabra/src/cost/benchmark.rs @@ -11,7 +11,7 @@ use std::{ }; use anyhow::{bail, Context, Result}; -use log::{debug, log_enabled, Level}; +use log::{debug, info, log_enabled, Level}; use primrose::{LibSpec, LibSpecs}; use serde::{Deserialize, Serialize}; use tempfile::{tempdir, TempDir}; @@ -58,7 +58,7 @@ pub fn run_benchmarks(name: &str, paths: &Paths, lib_specs: &LibSpecs) -> Result let crate_ = prepare_crate(name, paths, lib_spec)?; // Build and run - debug!("Building and running benchmarks for {}", name); + info!("Building and running benchmarks for {}", name); let child = Command::new("cargo") .args(["run", "--release", "--", "--bench"]) .current_dir(crate_.path()) @@ -157,7 +157,10 @@ fn prepare_crate(name: &str, paths: &Paths, lib_spec: &LibSpec) -> Result<TempDi // Directory we will create the crate in let crate_tempdir = tempdir()?; let crate_dir = crate_tempdir.path(); - debug!("Preparing benchmark crate for {} in {:?}", name, crate_dir); + info!( + "Preparing benchmarking crate for {} in {:?}", + name, crate_dir + ); // Write the manifest let mut manifest = diff --git a/src/crates/candelabra/src/profiler/mod.rs b/src/crates/candelabra/src/profiler/mod.rs index fa87f50..aa53d6c 100644 --- a/src/crates/candelabra/src/profiler/mod.rs +++ b/src/crates/candelabra/src/profiler/mod.rs @@ -4,7 +4,7 @@ mod info; use anyhow::{Context, Result}; use camino::{Utf8Path, Utf8PathBuf}; -use log::{debug, log_enabled, trace, warn, Level}; +use log::{info, log_enabled, trace, warn, Level}; use primrose::{ConTypeName, ContainerSelection, ContainerSelector, ImplName}; use serde::{Deserialize, Serialize}; use std::io::Write; @@ -114,7 +114,7 @@ impl State { candidates: impl Iterator<Item = (&'a ConTypeName, &'a Vec<ImplName>)>, con_types: &[ConTypeRef<'_>], ) -> Result<()> { - debug!("Setting up {} for profiling", file); + info!("Setting up {} for profiling", file); let selector = ContainerSelector::from_path( file.as_std_path(), @@ -162,7 +162,7 @@ impl State { con_types: &[ConTypeRef<'_>], ) -> Result<Mapping2D<Utf8PathBuf, ConTypeName, UsageProfile>> { let profiler_out_dir = tempdir()?; - debug!( + info!( "Running benchmark {} with out dir {:?}", name, profiler_out_dir ); diff --git a/src/crates/primrose/src/selector.rs b/src/crates/primrose/src/selector.rs index fcfd0c6..fd6f294 100644 --- a/src/crates/primrose/src/selector.rs +++ b/src/crates/primrose/src/selector.rs @@ -5,7 +5,7 @@ use std::{ path::Path, }; -use log::{debug, trace}; +use log::{debug, info, trace}; const MATCHSCRIPT: &str = "./racket_specs/gen_match/match-script.rkt"; const OPS: &str = "./racket_specs/gen_lib_spec/ops.rkt"; @@ -96,10 +96,8 @@ impl ContainerSelector { pub fn find_all_candidates(&self) -> Result<HashMap<&TagId, Vec<String>>, Error> { let mut candidates = HashMap::new(); for tag in self.container_tags() { - debug!("Finding candidates for tag {}", tag); let found = self.find_candidates(tag)?; - debug!("Found {} candidates for tag {}", found.len(), tag); candidates.insert(tag, found); } @@ -115,7 +113,7 @@ impl ContainerSelector { panic!("tag_id was not Tag::Con"); }; - debug!("Finding container types for tag {}", tag_id); + info!("Finding container types for tag {}", tag_id); let prop_descs: Vec<Description> = tags .iter() .filter(|t| t.is_prop_tag()) |