From 86c0b95f93979fbb2df46f1da30d3e34924e7d53 Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Fri, 1 Mar 2024 15:28:11 +0000 Subject: more info logs --- src/crates/candelabra/src/cost/benchmark.rs | 9 ++++++--- src/crates/candelabra/src/profiler/mod.rs | 6 +++--- src/crates/primrose/src/selector.rs | 6 ++---- 3 files changed, 11 insertions(+), 10 deletions(-) (limited to 'src/crates') 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)>, 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> { 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>, 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 = tags .iter() .filter(|t| t.is_prop_tag()) -- cgit v1.2.3